Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-29-2003, 09:31 AM
|
#1
|
Member
Registered: Aug 2003
Location: Charlotte, North Carolina
Distribution: Red Hat (and look-alike), SUSE (when drunk), Slackware (when mad)
Posts: 148
Rep:
|
Permitions to groups
OK, I think it looks natural, but after 72 in front of my monitor, I'm stuck!
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!!
Any help? Plz!!!
I know, I am
|
|
|
08-29-2003, 10:49 AM
|
#2
|
Senior Member
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070
Rep:
|
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
|
|
|
08-29-2003, 11:06 AM
|
#3
|
Member
Registered: Aug 2003
Location: Charlotte, North Carolina
Distribution: Red Hat (and look-alike), SUSE (when drunk), Slackware (when mad)
Posts: 148
Original Poster
Rep:
|
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.
|
|
|
08-29-2003, 11:13 AM
|
#4
|
Senior Member
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070
Rep:
|
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]
|
|
|
08-29-2003, 11:26 AM
|
#5
|
Member
Registered: Aug 2003
Location: Charlotte, North Carolina
Distribution: Red Hat (and look-alike), SUSE (when drunk), Slackware (when mad)
Posts: 148
Original Poster
Rep:
|
That helped!
By the way, happy birthday!!!
|
|
|
08-29-2003, 11:31 AM
|
#6
|
Senior Member
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070
Rep:
|
Thanks dtournas, and glad I could help
|
|
|
All times are GMT -5. The time now is 11:09 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|