Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 02-12-2007, 01:21 PM   #1
LQ Newbie
Registered: Nov 2006
Location: philadelphia, PA
Distribution: Slackware current
Posts: 27

Rep: Reputation: 15
What Does Each Group Give Permission To?

I have just installed Slackware 11.0 and I'm looking to add my user (john) to more groups than just user. I don't know what permission each group gives. I'm wondering if someone could list the groups and there related permissions or direct to a list. I want to be able to make a better decision about what groups I need to be a part of. If there is already a thread or list on this please direct me to it. Thanks
Old 02-12-2007, 02:11 PM   #2
Registered: May 2004
Distribution: Slackware
Posts: 214

Rep: Reputation: 45
I don't have a comprehensive answer. Some are pretty self-explanatory such as audio, video, cdrom, etc.

Another that is worth knowing about is wheel which allows your username to sudo.

Note that you can get a feel for what directories are associated with a particular group by doing:

find / -type d -group <groupname> 2>/dev/null
The 2>/dev/null prevents the display of errors arising from trying to look at privileged directories.

You can do the same for files by specifying '-type f' instead of '-type d'
Old 02-12-2007, 02:17 PM   #3
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 30
In addition to xflow7's answer:

Let's say we have the following users and groups.

user   group
----   -----
x1     xg
x2     xg
x3     xg

y1     yg
y2     yg
y3     yg
User x1 has a file xxx whose permissions are 640, which means that user x1 can read and write to the file (the 6), and other users in his group can read the file (the 4).

Let's consider all files which, like file xxx, have permissions that allow all users in group xg to read them (-4-), write them (-2-), execute them (-1-), whatever. Let's suppose that, for purposes of accessing these files, user y1 should be an "honorary member" (that's my term, not a technical term) of group xg. If you add user y1 to group xg's line in /etc/group, he will now be such an honorary member.

The only additional permissions user y1 has received is to get access to files created by users in group wg, and only those files which have group permissions of some sort.

Last edited by; 02-12-2007 at 02:18 PM.
Old 02-13-2007, 12:05 AM   #4
LQ Newbie
Registered: Nov 2006
Location: philadelphia, PA
Distribution: Slackware current
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks xflow and wjevans. I appreciated the help and I'll have you know that your help has gotten me one step closer to switching totally to linux. I now have DVD video playing on my slackbox.
Old 02-13-2007, 08:43 AM   #5
Registered: Feb 2006
Distribution: slackware 11
Posts: 110

Rep: Reputation: 15
hi, i was wondering what the difference is between using the numbers way of changing file permissions (as in wjevans post), and doing something like 'chmod rwx=u filename' ?
Old 02-13-2007, 09:08 AM   #6
Senior Member
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
There's no difference. It's two ways of expressing the same thing, one more human-readable than the other.
Old 02-14-2007, 02:48 AM   #7
Registered: Feb 2006
Distribution: slackware 11
Posts: 110

Rep: Reputation: 15
ah right, thanks uselpa


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to give access rights to one group to the home-dirs of another group Peter@KKVS Linux - Networking 2 11-09-2006 12:38 AM
How to give permission to /home partition Micro420 Linux - General 3 05-09-2005 05:49 PM
Howto give permission to hole directory js72 Debian 3 12-08-2004 04:50 PM
How to give permission to DVD-ROM? Micro420 Mandriva 19 01-21-2004 01:41 PM
How to give user permission to suspend with apm Bagleemo Linux - Laptop and Netbook 2 12-27-2003 01:10 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:05 AM.

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