Skip to content

Instantly share code, notes, and snippets.

@ayonliu
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayonliu/4a21a89c7217a575e5de to your computer and use it in GitHub Desktop.
Save ayonliu/4a21a89c7217a575e5de to your computer and use it in GitHub Desktop.
Add ftp user
# 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