LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-28-2012, 05:13 PM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,374

Rep: Reputation: Disabled
question about user group "sys"


While installing a new distro, the installer asked me what groups to add the user to. One of them was "sys," and seemed to give the user unlimited administrative privileges if I understood it correctly (perhaps not). What's the effective difference between adding a user to sys and putting a user's name in the sudoers list?

While I think of this, I have also seen that there is a "sudo" user group. Is there any difference between that and adding a user to sudoers? It sounds like two ways to do the same thing.
 
Old 12-29-2012, 10:59 AM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
Quote:
While I think of this, I have also seen that there is a "sudo" user group. Is there any difference between that and adding a user to sudoers? It sounds like two ways to do the same thing.
Comparatively, 'root' is both a 'user' and an effective 'group'; while 'sys' is an /*optional*/ and less privileged group mainly given for security and compatibility reasons, (it is not an effective user) just like the group 'daemon' which may exist or may not exist and as such it cannot affect the functioning of the entire system. Mostly files given gid of ' 3 ' or 'sys' group are read-only or read-write, but not executable temporary files that are created by processes spawned by daemons like cups and udev. You can check it this way--
Code:
~# find {/var,/run} -gid 3 -exec ls -l {} \;
but if you seek it from system files like--
Code:
find {/lib,/usr} -gid 3
0
it returns none.

Other than being logged-in as 'root' user, 'sudo' (or 'su' ) is the only way to obtain and be empowered as the effective super-user. You have to be allowed by the /etc/sudoers configuration in order to gain superuser rights; being a member to group 'root' does not necessarily empower you to be equal to an effective root: usefulness of group membership inherits only whatever permission is set to gid of a given file (be it binary or not) which means if a binary file is set 744 group members cannot execute the file, be he root or not, but the owner can be he root or not.

Actually 'sudo' and 'sys' (group) membership do not confer equal rights; as much as they are not the same.

HOpe this helps.

Good luck.

Last edited by malekmustaq; 12-29-2012 at 11:09 AM.
 
1 members found this post helpful.
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to force "configure" and "Makefile" to look for dependencies in non sys folder? Dstruct0 Linux - Software 2 04-05-2011 08:01 AM
[SOLVED] Adding user "me" to group "you" doesn't take effect for a while. Why not? Le Beastie Linux - Newbie 1 12-09-2009 04:13 AM
Adding an AD authenticated user to the "wheel" group on Red Hat ES kram82 Linux - Security 3 06-22-2006 07:50 AM
gmplayer message at start-"echo 1024 > /proc/sys/dev/rtc/max-user-freq" Mutation_1101 Slackware 7 01-11-2006 07:46 PM
strange group and user set to "573" in linux-2.4.27 tree structure xround Linux - General 2 10-12-2004 11:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:27 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