HOWTO Setup vsftpd: Difference between revisions
Jjaythomas (talk | contribs) No edit summary |
Jjaythomas (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
<font color=red>server / #</font> <font color=blue>emerge --sync</font> | <font color=red>server / #</font> <font color=blue>emerge --sync</font> | ||
Install vstfpd: | Install vstfpd: | ||
Line 8: | Line 7: | ||
<font color=red>server / #</font> <font color=blue>emerge -v vsftpd</font> | <font color=red>server / #</font> <font color=blue>emerge -v vsftpd</font> | ||
Copy the example configuration file as your template: | |||
<font color=red>server / #</font> <font color=blue>cp /etc/vsftpd/vsftpd.conf.example /etc/vsftpd/vsftpd.conf</font> | |||
<font color=red>server / #</font> <font color=blue>cp /etc/vsftpd/ | |||
Edit the configuration file with these additional switches: | |||
<font color=red>server / # | <font color=red>server / #</font> <font color=blue>vi /etc/vsftpd/vsftpd.conf</font> | ||
Revision as of 17:55, 6 March 2008
First, get the latest version in your portage tree:
server / # emerge --sync
Install vstfpd:
server / # emerge -v vsftpd
Copy the example configuration file as your template:
server / # cp /etc/vsftpd/vsftpd.conf.example /etc/vsftpd/vsftpd.conf
Edit the configuration file with these additional switches:
server / # vi /etc/vsftpd/vsftpd.conf
file_open_mode=0666
local_umask=0022
virtual_use_local_privs=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
idle_session_timeout=600
ascii_upload_enable=NO
ascii_download_enable=NO
tcp_wrappers=YES
data_connection_timeout=120
userlist_enable=YES
userlist_deny=NO
server / # vi /etc/vsftpd/user_list
rc-update vsftpd add default server / # vi /etc/vsftpd/user_list
/etc/init.d/vsftpd start
server / # vi /etc/vsftpd/user_list
- check for the presence of home directories, which vsftp uses as default
Set Up User(s) For Web directory FTP Access
vi /etc/passwd
UserName:x:1001:1002::/var/www/www.web.iat.sfu.ca/:/bin/bash
groupadd ftpaccess
usermod -g ftpaccess UserName
chmod -R 775 www.web.iat.sfu.ca/
chgrp -R ftpaccess www.web.iat.sfu.ca/
/etc/init.d/apache stop start
/etc/init.d/vsftpd stop start
Troubleshooting Syntax
grep -vE "^#" /etc/vsftpd/*