LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-26-2008, 09:07 AM   #1
Cocytus1
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Rep: Reputation: 0
Does root belong to all groups - Permissions Question


As a Linux newbie, I'm just trying to get my head around some of the core concepts of the OS.

The way Linux handles file permissions is much better than 'that legacy operating system' but I'm just trying to understand the way in which the root (superuser) has access in terms of file permissions.

I understand that root is the top dog and all other users are below root.

What I really want to know is if:

(a) root is automatically a member of all groups on the system

or

(b) root doesn't need to be a member of any group (of than root) because the kernel will give root access to everything irrespective of file permissions.

I think the answer is (b) but not sure!

Hope someone can help!?
 
Old 04-26-2008, 09:22 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
On my machine, root is only in one group (root). But, I think your (b) answer is correct.
 
Old 04-26-2008, 09:35 AM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,896

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
Here is a good definition of root as it applies to Unix/Linux systems.
 
Old 04-26-2008, 02:53 PM   #4
p_quarles
LQ Newbie
 
Registered: Sep 2007
Posts: 9

Rep: Reputation: 0
Option B is correct. Privilege settings do not affect the root account.

You didn't ask, but I'll add this anyway: this is one of the main reasons why most people recommend against running things as root unless necessary. The fact that root has all privileges means that it can break privileges for other users fairly easily. For instance, creating a configuration file as root will mean that file is owned by root, and depending on the settings of the directory in which it is configured, may not be readable by other users. This would be easy to fix, of course, but is an example of the larger pattern of problems.

Controlling privileges via tools such as group settings and/or sudo is highly recommended for minimizing long-term frustrations.
 
Old 04-26-2008, 04:50 PM   #5
Cocytus1
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks v much 4 ur answers. V helpful!
 
  


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
show processes than don't belong to user root jianelisj Linux - Newbie 2 03-07-2008 12:31 AM
does this question belong here? usrlinux Linux - Newbie 6 03-19-2007 07:22 AM
root can access a partition and see owners/groups/perms, user gets question marks lurko Debian 2 10-05-2006 12:30 PM
root cron permissions question bjdea1 Linux - General 6 07-10-2004 01:39 PM
Users, groups, permissions - specific task question Doctafonk Linux - General 2 04-21-2004 10:05 PM

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

All times are GMT -5. The time now is 08:04 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration