Created
April 24, 2017 22:55
-
-
Save kolunar/265620ed21fcca6eeb920b95bb5c2040 to your computer and use it in GitHub Desktop.
Creating and Enabling ftp user and access
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
1. mkdir /var/www/mydomain.com | |
2. mkdir /var/www/mydomain.com/html | |
3. useradd <-username> | |
4. passwd <-username> | |
5. chown –R <-username> /var/www/mydomain.com | |
5. groupadd <-groupname> | |
6. gpasswd -a <-username> <-groupname> | |
7. chgrp -R <-groupname> /var/www/mydomain.com | |
8. chmod -R g+rw /var/www/mydomain.com | |
apt-get update | |
apt-get install vsftpd | |
nano /etc/vsftpd.conf | |
uncomment write_enable=YES | |
service vsftpd restart | |
http://unix.stackexchange.com/questions/83221/how-to-create-a-ftp-user-with-specific-dir-access-only-on-a-centos-linux-ins | |
http://ubuntuforums.org/showthread.php?t=1994470 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment