vsftpd_centos
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| vsftpd_centos [2015/04/25 21:33] – created luke7858 | vsftpd_centos [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| === Configuring / | === Configuring / | ||
| - | You should edit your **/ | + | You should edit your **/ |
| <sxh bash> | <sxh bash> | ||
| anonymous_enable=NO | anonymous_enable=NO | ||
| Line 24: | Line 24: | ||
| pasv_max_port=65000 | pasv_max_port=65000 | ||
| </ | </ | ||
| + | \\ | ||
| === Chrooting User === | === Chrooting User === | ||
| - | If you would like to chroot the users you can add the following line to the bottom of **/var/ | + | If you would like to chroot the users you can add the following line to the bottom of **/etc/ |
| #for chrooting users add the following lines: | #for chrooting users add the following lines: | ||
| Line 47: | Line 47: | ||
| </ | </ | ||
| + | \\ | ||
| === Firewall Rules: === | === Firewall Rules: === | ||
| <sxh bash> | <sxh bash> | ||
| - | iptables -I INPUT -p tcp –dport 21 -m comment | + | iptables -I INPUT -p tcp --dport 21 -m comment |
| - | iptables -I INPUT -p tcp -m multiport | + | iptables -I INPUT -p tcp -m multiport |
| </ | </ | ||
| <sxh bash> | <sxh bash> | ||
| Line 61: | Line 61: | ||
| IPTABLES_MODULES=" | IPTABLES_MODULES=" | ||
| </ | </ | ||
| - | Adding and modifying Users | + | \\ |
| + | === Adding and modifying Users=== | ||
| - | useradd -m -s / | + | **useradd -m -s / |
| - | useradd –home / | + | **useradd –d / |
| - | Adding a new user straight into a group useradd -G {group-name} username | + | Adding a new user straight into a group **useradd -G {group-name} username** |
| 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 / | 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 / | ||
| - | + | <sxh bash> | |
| - | useradd -G groupname | + | useradd -G groupname |
| + | </ | ||
| Don’t forget to set the password for the user with: | Don’t forget to set the password for the user with: | ||
| + | <sxh bash> | ||
| passwd username | passwd username | ||
| + | </ | ||
| you will then be prompted to change the password for the user | you will then be prompted to change the password for the user | ||
vsftpd_centos.1429997636.txt.gz · Last modified: 2024/05/23 07:26 (external edit)
