Welcome to Blog.24reader.com. This is your first post. Edit or delete it, then start blogging!
FTP Quick install guide for Fedora / CentOS
- yum install vsftpd
- edit /etc/sysconfig/iptables-config
IPTABLES_MODULES=”ip_conntrack_netbios_ns ip_nat_ftp”
- #service iptables restart
- create useraccount e.g. ftpuser
- edit /etc/vsftpd/vsftpd.conf
anonymous_enable=NO # anonymouse access ? no way !
userlist_deny=NO # add this line
chroot_local_user=YES #add this line
- edit /etc/vsftpd/user_list
remove all other user
add user that can ftp in the list e.g. ftpuser
- #service vsftpd start ; chkconfig vsftpd on
Q: I want to run a daemon on a non standard port but SELinux will not allow me. How do get this to work?
A: You can use the semanage command to define additional ports. So say you want httpd to be able to listen on port 8082. You could enter the command.
semanage port -a -p tcp -t http_port_t 8082
For example, if I have a package named:
netatalk-1.6.1-2rh7.i386.rpm
and an rpm of sources for this rpm:
netatalk-1.6.1-2rh7.src.rpm (or .srpm)
then, the command should be:
rpmbuild –rebuild netatalk-1.6.1-2rh7.src.rpm
then install the rpm in commond rpm path
/usr/src/redhat/RPMS/i386