VSFTPD configuration instructions, and 553 could not create file. Error ResolutionUpdate Time: 2011-11-10 11:15:46 Source: Unknown Author: goldpony Click: 181 times vsftp File and directory/usr/sbin/vsftp vsftp main program/etc/rc.d/init.d/vsftp vsftp startup Script/etc/vsftpd/vsftpd.conf vsftp configuration file/etc/pamd/vsftpd Pam Authentication file/etc/vsftpd/vsftpd.ftpuser prohibit users using FTP/etc/vsftpd/ Vsftpd.user_lis
The Vsftp file is vsftp with the main program/etc/rc.d/init.d/vsftp/etc/vsftpd/vsftpd of the directory/usr/sbin/vsftp vsftp. Conf vsftp profile/etc/pamd/vsftpd Pam Authentication file/etc/vsftpd/vsftpd.ftpuser prohibit users using FTP/etc/vsftpd/vsftpd . user_list prohibit or allow the use of FTP user list/var/ftp ftp anonymous home directory/varftp/pub ftp anonymous upload home directory VSFTP boot standalone mode for FTP access frequent environments VSFTP processes always run listening port Service vsftp START|STOP|RESTART|STATUS/ETC/RC. D/INIT.D/VSFTPD Start|stop|restart or add Listen=yes in/etc/vsftpd/vsftpd.conf to run in standalone daemon For a small amount of FTP traffic vsftp run the/etc/inet.d/vsftp script vsftp configuration file in the INET.D daemon/etc/vsftpd/vsftpd.conf Active mode setting Port_enable=yes Open Active mode Connect_from_port_20=yes whether the default 20-port listener is enabled when active mode is turned on ftp_d ate_port=%portnumber% the previous option uses the no parameter to specify the data transfer port Passive mode Pasv_enable=yes Open passive mode pasv_min_port=%number% passive mode minimum port pasv_max_port=%number% passive mode highest port Anonymous upload Settings anonymous_enable=yes enable anonymous account Anon_world_readable_only=no turn off anonymous global browsing Anon_upload_enable=yes anonymous upload Kai Anon_mkdir_write_enable=yes allows anonymous users to create directory Write_enable=yes global Write permission to restrict local user access to the file system chroot_l Ocal_user=yes limits local user browsing to its FTP root directory Restricting access to the file system by some users chroot_list_enable=yes enable the list (not open with the previous command) Chroot_list_file=%file path% restrict the user's list file Connection limit max_client=%number% maximum number of connections max_per_ip=%number% per IP maximum number of connections anon_max_rate=%number% anonymous user maximum rate unit KBP s local_max_rate=%number% local user maximum rate per kbps user_config_dir=%file path%/%username% connection rate settings for different users%userna The contents of the Me% file for the local_max_rate=%number% user home directory to set the local user's home directory definition in the/etc/passwd file where the FTP user:________ for the defined row Global REDIRECT LocalUser FTP home directory local_root=%path% Security Settings Hide_ids=yes hide the UID and GID of the user to change the original banner ftpd_banner=%message% or Banner_file=%file path% Virtual FTP Site Settings first create 2 sets of conf files #cp/etc/vsftpd/vsftpd.conf/etc/vsftp/vsftp2.conf create FTP2 home directory #mkdir/var/f TP2 #useradd-D/var/ftp2-m FTP2 #service vsftpd Restart to start a site individually/user/sbin/vsftpd/etc /vsftpd/vsftp2.conf& Additional: 553 could not create file. Error resolution in the Redhat 5 configured VSFTPD, everything is no problem, the user can also log on normally, but always prompt when uploading files: 553 could not create File. Error, baffled, searched on the Internet, the original is: Fedora Core 4 default state is open SELinux, in this state, VSFTP will be unable to upload the local user problems (may be the local user's home directory, or the entire directory), The error message is: 553 could not create file. To solve this problem, just: 1. Setsebool-p Ftpd_disable_trans 1 2. The service vsftpd restart is OK.   FTP users are generally unable to log on to the system, which is also for security. In the system, users who do not have access to the system are generally referred to as virtual users, and virtual users are also written into/etc /PASSWD; This is a virtual user approach, but it's not really a virtual user, He just took his login to the shell, so he didn't have the ability to login to the system; If we want to locate the Beinan user directory in the/opt/beinan directory and not login to the system, we should do the following [root@localhost ~]# adduser-d/opt/beinan-g ftp-s/sbin/nologin beinan [Root@localho St ~]# passwd beinan Changing password for user Beinan. New password: Retype new password: Passwd:all Authenticati On tokens updated successfully. [root@localhost ~]# In fact, this is not enough, but also to change the configuration file vsftpd.conf to ensure that local virtual users have read and write access; &NBS P Local_enable=yes write_enable=yes local_umask=022 (Executive Editor: admin) |