# create ftp symbolic link
cd /var/ftp/pub
ln -s /AT AT
# verify symbolic created.
ll
http://www.wikihow.com/Set-up-an-FTP-Server-in-Ubuntu-Linux
Change the configuration file. Get to the file browser and type /etc. Next scroll down and double click on a file called vsftpd.conf.
Remember that lines that start with a '#' are commented out:
Disable anonymous access: Change the "anonymous_enable" setting to NO
Change the "local_enable" setting to YES.
3Restart the FTP server to enable your changes: in a shell window, type: sudo /etc/init.d/vsftpd restart
Few permission setting need to configure
1. Iptables
iptables -L -n
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT
2. SElinux
http://www.webune.com/forums/how-to-install-tftp-server-in-linux.html
vi /etc/xinetd.d/tftp
server_args = -s /tftpboot
disable = no
# restart tftp service
/sbin/service xinetd start
cd /var/ftp/pub
ln -s /AT AT
# verify symbolic created.
ll
http://www.wikihow.com/Set-up-an-FTP-Server-in-Ubuntu-Linux
Change the configuration file. Get to the file browser and type /etc. Next scroll down and double click on a file called vsftpd.conf.
Remember that lines that start with a '#' are commented out:
Disable anonymous access: Change the "anonymous_enable" setting to NO
Change the "local_enable" setting to YES.
3Restart the FTP server to enable your changes: in a shell window, type: sudo /etc/init.d/vsftpd restart
Few permission setting need to configure
1. Iptables
iptables -L -n
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT
2. SElinux
getenforce
setsebool -P allow_ftpd_full_access 1
setsebool -P ftp_home_dir=1
[root@sun02 vsftpd]# getenforce
Enforcing
[root@sun02 vsftpd]# getsebool -a | grep ftp
allow_ftpd_anon_write –> off
allow_ftpd_full_access –> off
allow_ftpd_use_cifs –> off
allow_ftpd_use_nfs –> off
allow_tftp_anon_write –> off
ftp_home_dir –> on (change that to on in ur case this option is off)
ftpd_disable_trans –> off
ftpd_is_daemon –> on
httpd_enable_ftp_server –> off
tftpd_disable_trans –> off
[root@sun02 vsftpd]# setsebool -P ftp_home_dir on
# setup tftphttp://www.webune.com/forums/how-to-install-tftp-server-in-linux.html
vi /etc/xinetd.d/tftp
server_args = -s /tftpboot
disable = no
# restart tftp service
/sbin/service xinetd start
No comments:
Post a Comment