Last active
August 29, 2015 14:02
-
-
Save ayonliu/4a21a89c7217a575e5de to your computer and use it in GitHub Desktop.
Add ftp user
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# assume vsftpd installed | |
# add a user called `ftpuser`, home dir is "/var/www/html/example.com" | |
useradd -d /var/www/html/example.com -s /usr/sbin/nologin ftpuser | |
# add passowrd for ftpuser | |
passwd ftpuser | |
# | |
chown -R ftpuser:ftpuser /var/www/html/example.com | |
service vsftpd restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment