permissions for directory
aueddonline
Member Posts: 611 ■■□□□□□□□□
in Linux+
just going through chapter 7 of Mc Graw Hill study guide,
it says all about the ownership of a directory and file and there permissons for owner, gorup and other
How do you add a group and allow it a set of permissions?
it says all about the ownership of a directory and file and there permissons for owner, gorup and other
How do you add a group and allow it a set of permissions?
What's another word for Thesaurus?
Comments
-
aueddonline Member Posts: 611 ■■□□□□□□□□Mishra wrote:
couldn't see my answer on there, can it be done or do you just need to add the user to the owning group?What's another word for Thesaurus? -
sprkymrk Member Posts: 4,884 ■■■□□□□□□□You use the chgrp command to set or change the group on a file.
Then use the chmod -g to set whatever permissions that group has to the file (chmod -g+r+w for read and write for example).
http://www.techexams.net/technotes/linuxplus/users_permissions.shtml#cpoAll things are possible, only believe. -
Mishra Member Posts: 2,468 ■■■■□□□□□□You asked how to add a group and allow it a set of permissions.
The articles states
groupadd GROUP
to add a group, and to add permissions it also states
"You can also use the chown command with the -r switch for it to doe recursive searches down into directories to change permissions. " -
aueddonline Member Posts: 611 ■■□□□□□□□□yeah sorry my question was badly worded, i'll have another go
You can edit permissions for owner, owner group and other. so lets say that I have a file that belongs to a group called 'mobile' and the permissions on the file are u=rw,g=rw,o=r, how can I have it so that another group called 'roomA' can have rw permissions without giving rw permissions to other?What's another word for Thesaurus? -
Mishra Member Posts: 2,468 ■■■■□□□□□□Take a look at
setfacl
That should do it for you. I don't want to give you the exact answer so you learn how it works on your own. -
aueddonline Member Posts: 611 ■■□□□□□□□□Mishra wrote:Take a look at
setfacl
That should do it for you. I don't want to give you the exact answer so you learn how it works on your own.
thanks man, that's the ticket, I gotsetfacl -m group:roomA:rw- /directory/file.txt
and the to see the magic workinggetfacl /directory/file
What's another word for Thesaurus?