#yum install vsftpd
#service vsftpd restart
#chkconfig vsftpd on

Note: Home/default directory of anonymous(unknown)/FTP user is /var/ftp/
Default user: FTP Password: FTP
FTP allows anonymous users to login, without password but it doesn't allow normal user to login with credentials.
Below is login with ftp/ftp
Now login with user subh/subh
#service vsftpd restart
#chkconfig vsftpd on

Note: Home/default directory of anonymous(unknown)/FTP user is /var/ftp/
Default user: FTP Password: FTP
FTP allows anonymous users to login, without password but it doesn't allow normal user to login with credentials.
Below is login with ftp/ftp
FTP didn't allow access of home directory of normal user because Selinux Booleans for 'ftp_home_directory' is 'off'.
Now we set Selinux Booleans for 'ftp_home_dir' to 'on'
#setsebool -P ftp_home_dir on --> It takes time, as the change is permanent.
#getsebool -a | grep ftp
Now we will try login ftp with user 'subh/subh:
To come out of FTP, use 'bye'
No comments:
Post a Comment