LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Permitions to groups (https://www.linuxquestions.org/questions/linux-newbie-8/permitions-to-groups-86965/)

dtournas 08-29-2003 09:31 AM

Permitions to groups
 
OK, I think it looks natural, but after 72 in front of my monitor, I'm stuck! :scratch:

I want to change the rights for a directory for some specific groups. That means that:

for the directory "setup"
the group "super" has "r-w-x" rights
the group "power" has "r-x" rights
the group "idiots" has "r" rights...

I know that I have to play with chmod and chown commands but I'm completely stuck!! :cry: :cry:

Any help? Plz!!!

I know, I am :newbie:

darthtux 08-29-2003 10:49 AM

To change the group ownership
chgrp groupname
To change permissions
chmod g+? to add a group permission where ? is r, w, or x
chmod g-? to subtract a group permission where ? is r, w, or x

dtournas 08-29-2003 11:06 AM

Hi, thanx for the reply!

Well, this is not excactly what I wanted to do. I want to give different rights to the same directory depending on the group that tries to access it.

Did I made it any clearer?

Thanx.

darthtux 08-29-2003 11:13 AM

root would have to own the file
the group owner would have to be power with r-x
and idiots would be included in other
so it would look like

owner
root
group owner
power
rights
rwxr-xr--

You can do this by
chown root [dir]
chgroup power [dir]
chmod 754 [dir]

dtournas 08-29-2003 11:26 AM

That helped!

By the way, happy birthday!!! :) :) :)

darthtux 08-29-2003 11:31 AM

Thanks dtournas, and glad I could help :)


All times are GMT -5. The time now is 08:52 AM.