LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Does have a user in group 'root' all the rights as the user 'root'? (http://www.linuxquestions.org/questions/linux-newbie-8/does-have-a-user-in-group-%27root%27-all-the-rights-as-the-user-%27root%27-825581/)

thomas2004ch 08-11-2010 11:14 AM

Does have a user in group 'root' all the rights as the user 'root'?
 
All know there is a user root in group root. Now I will create a user in this group. I think this user should have all the rights as the root. Right?

AlucardZero 08-11-2010 11:36 AM

Not all of them. Users are not the same as groups.

You'll only be able to additionally read/write/execute files in the group root.

r3sistance 08-11-2010 11:53 AM

Root is a special user with "Super User" abilities as standard, if you want users to have similar abilities there is already the su and sudo facilities available for this task and these are generically speaking... safer then root. Sudo is a very very useful facility in this respect. Adding a user to the root group only matters in response to file permissions only what generally speaking root does not abide by anyway.

thomas2004ch 08-12-2010 05:07 AM

Quote:

Originally Posted by r3sistance (Post 4063152)
Root is a special user with "Super User" abilities as standard, if you want users to have similar abilities there is already the su and sudo facilities available for this task and these are generically speaking... safer then root. Sudo is a very very useful facility in this respect. Adding a user to the root group only matters in response to file permissions only what generally speaking root does not abide by anyway.

The background of my questions: I will install/deploy some programs which will access files from other users. So I want to create a user in the group of root.

chrism01 08-12-2010 05:18 AM

Best to create a dedicated group and add the users & apps to that group. Don't add people or progs to root (even as group root) unless you can't avoid it.
Note that people can belong to more than one group at a time.
You can use the 'id' cmd to see your uid, gid and group memberships.


All times are GMT -5. The time now is 02:29 PM.