LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 08-29-2003, 09:31 AM   #1
dtournas
Member
 
Registered: Aug 2003
Location: Charlotte, North Carolina
Distribution: Red Hat (and look-alike), SUSE (when drunk), Slackware (when mad)
Posts: 148

Rep: Reputation: 16
Unhappy 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
 
Old 08-29-2003, 10:49 AM   #2
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
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
 
Old 08-29-2003, 11:06 AM   #3
dtournas
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: Reputation: 16
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.
 
Old 08-29-2003, 11:13 AM   #4
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
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]
 
Old 08-29-2003, 11:26 AM   #5
dtournas
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: Reputation: 16
That helped!

By the way, happy birthday!!!
 
Old 08-29-2003, 11:31 AM   #6
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
Thanks dtournas, and glad I could help
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fat32 permitions jocast Linux - Software 10 01-05-2005 10:09 AM
File permitions jocast Linux - Networking 3 08-24-2004 10:16 PM
No write permitions :( Exio Linux - Networking 8 05-16-2004 05:10 PM
winbind: wbinfo -g only lists global groups from PDC and not local groups saradiya Linux - Networking 0 12-01-2003 02:58 AM
change permitions rootbryan Linux - Software 1 09-13-2003 11:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration