In this post we going to see about how we are going to jail a ftp user in VSFTP. Jailing means that user is locked to their home directory, can't able view or access any other folder in that server.
Jailing is mainly done for security purpose. If the user is not jailed, so they can able to access all other folder and files, can download the main configuration files in that server which is not secured one.
First install VSFTP package in server.
Create a user with directory which you need to jail.
Now change the configuration for VSFTP
Now check by login via filezilla or terminal using 21 port.
Jailing is mainly done for security purpose. If the user is not jailed, so they can able to access all other folder and files, can download the main configuration files in that server which is not secured one.
First install VSFTP package in server.
[root@linuxstorages~ #] yum install vsftpd
[root@linuxstorages~ #] chkconfig vsftpd on
Create a user with directory which you need to jail.
[root@linuxstorages~ #] useradd -d /var/www/html username
[root@linuxstorages~ #] passwd username
Now change the configuration for VSFTP
[root@linuxstorages~ #] vi /etc/vsftpd/vsftpd.conf
Go to line 96 and enable the below line
chroot_local_user=YES
:wq (save)
[root@linuxstorages~ #] /etc/init.d/vsftpd restart
Now check by login via filezilla or terminal using 21 port.
0 comments :
Post a Comment