VSFTPD installation on the internet there are a lot of tutorials here is not much to say, here is mainly for the host space service friends in the installation of good vsftpd after how to increase the FTP account user
Let's take a look at how we typically add users under the *inux system
#adduser Username <----------The user name you want to add
#passwd Username <----------user name for which you want to set a password
After the carriage return, the system will give the following prompts:
Changing password for user xx username.
New Password:
Bad password:it does not contain enough different characters
Retype new Password:
Passwd:all authentication tokens updated successfully.
But like the above to increase the user is not good, add samples of users for ordinary users, have the system login permissions, so I want to adduser command after the following parameters, as follows:
[root@srsman]# adduser-g ftp-s/sbin/nologin Srsman
[root@srsman]# passwd Beinan
Changing password for user Beinan.
New Password:
Retype new Password:
Passwd:all authentication tokens updated successfully.
This added out of the user is also a common user, but this user is not logged into the system, can only log into the FTP
The user system that is added through the above command will create a folder with the same name in the/home directory, and the directory that the user points to after FTP, and how to assign the FTP user to a specific directory.
The order is as follows:
[root@srsman]# adduser-d/opt/srsman-g ftp-s/sbin/nologin Srsman
[root@srsman]# passwd Srsman
Changing password for user Beinan.
New Password:
Retype new Password:
Passwd:all authentication tokens updated successfully.
This adds an FTP user named Srsman, directory pointing to/opt/srsman for the system.
Tips: Many friends are always prompt when adding users to FTP server
FTP Server connection failed, error message:
Oops:cannot Change directory:/home/*******
Oops:child died
When you see the above prompts, try to resolve them by entering the following command
Setsebool-p Ftpd_disable_trans 1
Service VSFTPD Restart
The-p parameter in the first line is for this command to be entered later without requiring each boot
//===================================================================
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 a folder's read and Write permissions:
Chown Ftp/var/ftp/upload
chmod 777/var/ftp/upload
//====================================================================
转自:http://hi.baidu.com/87156996/item/09823cc031989857bdef69bc