We can create the multiple ftp user for single home directory with the same ownership and permission.




How to Configure the  FTP server.

Than Put the below the commands:-

Example the user in same directory in /etc/passwd file in linux

bhandari:x:1001:1001::/var/www/html:/bin/nologin
surender:x:1002:1002::/var/www/html:/sbin/nologin (give the like this below the command) 

[root@bhandari ~]#useradd -s /sbin/nologin -d /var/www/html surender
[root@ip-172-31-16-202 ~]# passwd surender
Changing password for user surender.
New password:
BAD PASSWORD: The password fails the dictionary check - it is too simplistic/systematic
Retype new password:
passwd: all authentication tokens updated successfully.

Note:-  This user (surender) not create,upload,delete the files and folder in /var/www/html directory if you want to create and upload the permission below the command. 

[root@bhandari ~]# setfacl  -R -m u:surender:rwx /var/www/html surender

Note :- If you  want to give the only read permission to other user below the command.

[root@bhandari~]#useradd -s /sbin/nologin -d /var/www/html test

[root@bhandari ~]# setfacl  -R -m u:test:r /var/www/html test



We can create the multiple ftp user for single home directory with the same ownership and permission. We can create the multiple ftp user for single home directory with the same ownership and permission. Reviewed by cloudwalebhaiya on October 30, 2017 Rating: 5

Scribe

http://feeds.feedburner.com/LinuxAndAws
Powered by Blogger.
X

Get Updates On

Linux Tutorial

AWS Tutorial

Devops Tutorial

We are going to send you our resources for free. To collect your copy at first, join our mailing list. So don't miss any updates, stay connected!