 |
 |
NEWBIE Q: What's a root user and an admin user?
|
 |
|
 |
|
Forum Regular
Join Date: Jul 2003
Location: Toronto, Ontario
Status:
Offline
|
|
What's the difference between them?
Who has higher priority?
How do you switch between the two?
Thanks
|
Powerbook 12" 1GHZ, 1.25GB of RAM
My blog
|
| |
|
|
|
 |
|
 |
|
Posting Junkie
Join Date: Nov 1999
Status:
Offline
|
|
As far as Unix is concerned, the "root" user is God. This is the standard one-sentence explanation, I swear. It basically means that the root user can do absolutely anything on the machine, which is a severe double-edged sword.
It should be noted that the name "root" isn't what's important; that name has simply come to be convention. What really matters is that the user's ID number is 0. More than one user can have the same ID, so if you give yourself ID 0 (and I won't say how this is accomplished), you too can be root, without having to change your name.
An admin user is basically a concept new to OSX. Admin users are the same as regular users, except for two things. First, admin users are in a special group which lets them edit /Applications and /Library. Second, admin users can sudo things as root. That means that they can become root for a single command (the machine asks for the user's password first, of course). This is safer than being root all the time, because it helps make sure you don't do something as root that you didn't intend to do as root (or worse, doing something as root that you didn't intend to do at all).
Switching between the two really doesn't happen on OSX. When the machine asks for an admin password, this usually means that it needs to sudo something.
You do not need to log in as root. Period, ever. Trust me on this. Everything you would need to do as root, you can do as an admin by sudoing.
|
Fight your friends! Play AnimeVersus today!
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Apr 2000
Location: Woodridge, IL
Status:
Offline
|
|
Originally posted by Millennium:
As far as Unix is concerned, the "root" user is God. This is the standard one-sentence explanation, I swear. It basically means that the root user can do absolutely anything on the machine, which is a severe double-edged sword.
It should be noted that the name "root" isn't what's important; that name has simply come to be convention. What really matters is that the user's ID number is 0. More than one user can have the same ID, so if you give yourself ID 0 (and I won't say how this is accomplished), you too can be root, without having to change your name.
An admin user is basically a concept new to OSX. Admin users are the same as regular users, except for two things. First, admin users are in a special group which lets them edit /Applications and /Library. Second, admin users can sudo things as root. That means that they can become root for a single command (the machine asks for the user's password first, of course). This is safer than being root all the time, because it helps make sure you don't do something as root that you didn't intend to do as root (or worse, doing something as root that you didn't intend to do at all).
Switching between the two really doesn't happen on OSX. When the machine asks for an admin password, this usually means that it needs to sudo something.
You do not need to log in as root. Period, ever. Trust me on this. Everything you would need to do as root, you can do as an admin by sudoing.
I used to activate the root account, but now I also just sudo things. Much safer, and you always know when you have god-like privileges and when you don't.
(Technical aside - are admin users really new to OS X? Wouldn't they just be the users that are in group wheel?)
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Jul 2003
Location: Toronto, Ontario
Status:
Offline
|
|
When ppl say "Log in as root user", what do they really mean?
|
Powerbook 12" 1GHZ, 1.25GB of RAM
My blog
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Jun 1999
Location: Centennial, CO, USA
Status:
Offline
|
|
They usually mean to log in as an admin user. Nobody logs into OS X as root.
The terminology has become corrupted by people who don't understand the difference...just like the term "baud" was corrupted in the modem days to mean bits per second, as in 9600 baud modem.
Chris
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Jul 2003
Location: Toronto, Ontario
Status:
Offline
|
|
thanx ppl for the clarification !!!
|
Powerbook 12" 1GHZ, 1.25GB of RAM
My blog
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Feb 2001
Status:
Offline
|
|
There is nothing wrong with logging in as root, if you know what you are doing.
I back up multiple users as root. Quick and easy.
|
|
Religion is an insult to human dignity. With or without it, you'd have good people doing good things and evil people doing bad things, but for good people to do bad things, it takes religion - Steven Weinberg.
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |