Link to home
Start Free TrialLog in
Avatar of compdigit
compdigit

asked on

Permissions

In Unix how to a grant a specific user "read" access to "one" specific folder???
Avatar of ozo
ozo
Flag of United States of America image

chwn user folder
chmod a-rwx folder
chmod u+r folder
Avatar of ppfoong
ppfoong


If the folder belongs to the user:

chmod u+r folder

If the folder not belongs to the user, check the group owner and add the user to the group.

usermod -G groupname username
chmod g+r folder

Avatar of compdigit

ASKER

I am new to the Unix world so please bare with me. But what if I don't want to give the whole group read permissions. I just want to grant user A read access to only one of User B folders and that's it.
If you want only A and B to have access, you should chgrp it to a group containing only A and B
ASKER CERTIFIED SOLUTION
Avatar of ppfoong
ppfoong

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