User Tools

Site Tools


vsftpd_centos

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
vsftpd_centos [2017/08/11 06:02] luke7858vsftpd_centos [2024/05/23 07:26] (current) – external edit 127.0.0.1
Line 50: Line 50:
 === Firewall Rules: === === Firewall Rules: ===
 <sxh bash> <sxh bash>
-iptables -I INPUT -p tcp --dport 21 -m comment -comment "FTP" -j ACCEPT+iptables -I INPUT -p tcp --dport 21 -m comment --comment "FTP" -j ACCEPT
  
-iptables -I INPUT -p tcp -m multiport --dports 60000:65000 -m comment -comment "FTP passive mode ports" -j ACCEPT+iptables -I INPUT -p tcp -m multiport --dports 60000:65000 -m comment --comment "FTP passive mode ports" -j ACCEPT
 </sxh> </sxh>
 <sxh bash> <sxh bash>
Line 72: Line 72:
 Alternivately you are able to use the following command to add a new user straight into a group you have created with a home directory of /var/www/html and NO shell login (only useable as FTP user) Alternivately you are able to use the following command to add a new user straight into a group you have created with a home directory of /var/www/html and NO shell login (only useable as FTP user)
 <sxh bash> <sxh bash>
-useradd -G groupname home /var/www/testftp/ -m -s /sbin/nologin newusername+useradd -G groupname -home /var/www/testftp/ -m -s /sbin/nologin newusername
 </sxh> </sxh>
 Don’t forget to set the password for the user with: Don’t forget to set the password for the user with:
vsftpd_centos.1502431323.txt.gz · Last modified: 2024/05/23 07:26 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki