LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 02-12-2007, 02:21 PM   #1
Do7AN
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, 03:11 PM   #2
xflow7
Member
 
Registered: May 2004
Distribution: Slackware
Posts: 160

Rep: Reputation: 21
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:

Code:
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, 03:17 PM   #3
wjevans_7d1@yahoo.co
Member
 
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.

Code:
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 wjevans_7d1@yahoo.co; 02-12-2007 at 03:18 PM.
 
Old 02-13-2007, 01:05 AM   #4
Do7AN
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, 09:43 AM   #5
soldan
Member
 
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, 10:08 AM   #6
uselpa
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, 03:48 AM   #7
soldan
Member
 
Registered: Feb 2006
Distribution: slackware 11
Posts: 110

Rep: Reputation: 15
ah right, thanks uselpa
 
  


Reply


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 01:38 AM
How to give permission to /home partition Micro420 Linux - General 3 05-09-2005 06:49 PM
Howto give permission to hole directory js72 Debian 3 12-08-2004 05:50 PM
How to give permission to DVD-ROM? Micro420 Mandriva 19 01-21-2004 02:41 PM
How to give user permission to suspend with apm Bagleemo Linux - Laptop and Netbook 2 12-27-2003 02:10 PM


All times are GMT -5. The time now is 03:15 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration