Link to home
Start Free TrialLog in
Avatar of kwitcom
kwitcomFlag for United States of America

asked on

Linux Folder Rights for Multi Users via FTP

Linux Folder Rights for Multi Users via FTP

Here is what  I am looking to do.

Folders:
System Files
-----Web Users
---------User1
---------User2
---------User3

I have users 1-3 able to connect and open their own folders and files, that works.
I want is a User4 that will have access to the folder Web Users and able to view and edit all files.

#ls -ld /var/www/vhosts/tmispa.com/web_users
drwxr-xr-x  5 root psaserv 1024 Jun 28 13:00 /var/www/vhosts/tmispa.com/web_users
#

# ls -l /var/www/vhosts/tmispa.com/web_users
total 3
drwxr-x---  2 bradt   psaserv 1024 Jun 28 13:00 bradt
drwxr-x---  2 gcsuser psaserv 1024 Jun 28 12:45 gcsuser
drwxr-x---  2 scpuser psaserv 1024 Jun 28 13:00 scpuser

passwd (file)
gcsuser:x:10007:10001::/var/www/vhosts/tmispa.com/web_users/gcsuser:/bin/false
scpuser:x:10005:10001::/var/www/vhosts/tmispa.com/web_users/scpuser:/bin/false
bradt:x:10006:10001::/var/www/vhosts/tmispa.com/web_users:/bin/false
ASKER CERTIFIED SOLUTION
Avatar of pjedmond
pjedmond
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of slyong
slyong

It seems like you are using Plesk for creating the WebUsers.. not a good idea to mess with the permission of the directories.  I don't think Plesk has a way for what you need.
Avatar of kwitcom

ASKER

How do you set a group for directories?  Been trying to find the command.
chgrp

man chgrp

for options, although they conform to much the same as for user.

NOTE psaserv group is the group that administers on behalf of plesk. Changing the group will make the Plesk Control panel fail if you try to do any administration relating to the ftp elements of these accounts. Make sure that you understand exactly what you aer doing before you commit!

(   (()
(`-' _\
 ''  ''
Avatar of kwitcom

ASKER

Thnx... Now Will it like windows allow multi groups?

So I can just add a another group with Full access.
No - it only allows one group, but users can be members of multiple groups.

(   (()
(`-' _\
 ''  ''
Avatar of kwitcom

ASKER

One last Question I think i Have it working now.... How do i remove a group from a user?

I have Bradt in tmigroup and psaserv.  But I want to remove the psaserv from him now to test it.

I have the Web_users folder with the group of tmigroup and all sub folders.  I added that group to my Admin account so it can access the folders also.

Folders:
                                        Group Asigned
System Files                        (root)
-----Web Users                    (tmigroup)
---------User1                      (tmigroup)
---------User2                      (tmigroup)
---------User3                      (tmigroup)
>I think i Have it working now

Congratulations!

Easy way:

edit the /etc/group file and remove them from the group definition that you no longer wish them to be part of .

Slightly longer way - can't remember the name of the command - mess around with google for a bit - check the man statement, and then realie the command is....usermod....man it, mess it up a couple of times - decide to go with the easy way;)

Of course you can use usermod if you wish:)

(   (()
(`-' _\
 ''  ''
Avatar of kwitcom

ASKER

what is the command for usermod?
man usermod

usermod Bradt -g tmigroup