VSFTPD Service Add User
VSFTP installation, yum or source code you, the following talk about the establishment of an FTP account.
[Email protected]]# adduser-d/opt/data/http/upload-g ftp-s/sbin/nologin Ftpman
[Email protected]]# passwd Ftpman
Changing password for user Ftpman.
New Password:
Retype new Password:
Passwd:all authentication tokens updated successfully.
This adds a system named Ftpman, which points to an FTP user that is/opt/data/http/upload and cannot be directly used to log on to the CentOS system.
If the FTP server connection fails, error message:
Oops:cannot Change directory:/home/*******
Oops:child died
You can try the following command:
Setsebool-p Ftpd_disable_trans 1
Service VSFTPD Restart
P This parameter indicates that the system can be restarted later without having to play it again.
To modify the vsftpd.conf file:
User_config_dir=/etc/vsftpd/user_config_dir
and add the user name file under this folder
Anon_world_readable_only=no
Anon_upload_enable=yes
Anon_mkdir_write_enable=yes
Anon_other_write_enable=yes
To modify read and write permissions for a folder:
Chown Ftp/opt/data/http/upload
chmod 777 /opt/data/http/upload
Add a user to Vsftp