Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > root on OS X

root on OS X
Thread Tools
CatOne
Mac Elite
Join Date: Nov 2001
Status: Offline
Reply With Quote
Jan 15, 2002, 01:46 PM
 
So root access on OS X is strange -- or at least not what I'm used to with Linux or Solaris.

Stuff like 'su' or 'su root' doesn't work -- I'm forced to do a 'sudo su' -- the plain old 'su -' gives me a "sorry" because the password is bad. I changed the password via sudo password su but it's still kinda wacky.

Is there something that describes how root is supposed to work on OS X?

Thanks,

-B
     
howardm4
Senior User
Join Date: Sep 2000
Location: Boston, MA
Status: Offline
Reply With Quote
Jan 15, 2002, 02:44 PM
 
thats because by default, the root acct isnt enabled.

go into netinfo manager and find the security tab (I forget offhand)
and one of the things is 'enable root'. After that, it's just like Linux/Solaris
     
rkt
Mac Enthusiast
Join Date: Oct 2000
Status: Offline
Reply With Quote
Jan 15, 2002, 03:11 PM
 
Originally posted by CatOne:
<STRONG>Stuff like 'su' or 'su root' doesn't work -- I'm forced to do a 'sudo su' -- the plain old 'su -' gives me a "sorry" because the password is bad. I changed the password via sudo password su but it's still kinda wacky.</STRONG>
unless you really know that you need it, don't bother setting a password for the root account (it's more secure the way it is); instead just use "sudo -s" which will give you a shell with root privilages.
     
rkt
Mac Enthusiast
Join Date: Oct 2000
Status: Offline
Reply With Quote
Jan 15, 2002, 03:13 PM
 
Originally posted by howardm4:
<STRONG>go into netinfo manager and find the security tab (I forget offhand)
and one of the things is 'enable root'.</STRONG>
since catone says that he's already changed the root password via "sudo passwd root" then making this change using netinfo manager will make no difference.
     
t_hah
Mac Elite
Join Date: Dec 2000
Location: Tempe, AZ
Status: Offline
Reply With Quote
Jan 15, 2002, 05:11 PM
 
This is totally weird.
I am using a new CPU. I wanted to install XonX on my machine. I need it for work.
So I went to enable root in the NetInfo Manager. Then I got to the terminal, but whenever I use "sudo" and type in the password, it does not work. I type the password in 3 times, and it still says that it is incorrect. What is going on here?
Then I went back to netInfo Manager. I changed the root password...(I thought that maybe I did some typo there). I went back to Terminal, but sudo still does not work!

Can someone help me out here please?

Thanks


t
     
howardm4
Senior User
Join Date: Sep 2000
Location: Boston, MA
Status: Offline
Reply With Quote
Jan 15, 2002, 06:08 PM
 
rkt,

I'm not so sure of that. I can go into netinfo and disable the
root acct and it prepends a '*' to the current passwd entry for root.

So, it is possible that he could in fact change the root passwd
w/o the account actually being enabled.
     
t_hah
Mac Elite
Join Date: Dec 2000
Location: Tempe, AZ
Status: Offline
Reply With Quote
Jan 15, 2002, 06:21 PM
 
Alright, I solved it...I do not really feel comfortable in UNIX yet, but this is what I did.
Someone set this computer up for multiple account. The one i was using did not have administrative privileges. So whenever i tried to "su" or "sudo', it would tell me I could not use those command...so I loged in as an admin. Then I could use "su" and "sudo".
First I was using some secondary level account, not quite sure what that is, but that is what the system said. From there I could not "su" or "sudo". Once I changed user to admin, I was able to do whatever I wanted to do.

Thanks for all the help,


t

[ 01-15-2002: Message edited by: t_hah ]
     
rkt
Mac Enthusiast
Join Date: Oct 2000
Status: Offline
Reply With Quote
Jan 15, 2002, 06:22 PM
 
Originally posted by t_hah:
<STRONG>So I went to enable root in the NetInfo Manager. Then I got to the terminal, but whenever I use "sudo" and type in the password, it does not work. I type the password in 3 times, and it still says that it is incorrect.</STRONG>
enabling the root account is *not* required to use sudo; when sudo asks for a password, it's expecting the password your password, not root's.
     
rkt
Mac Enthusiast
Join Date: Oct 2000
Status: Offline
Reply With Quote
Jan 15, 2002, 06:29 PM
 
Originally posted by howardm4:
<STRONG>I'm not so sure of that. I can go into netinfo and disable the
root acct and it prepends a '*' to the current passwd entry for root.

So, it is possible that he could in fact change the root passwd
w/o the account actually being enabled.</STRONG>
yes, the root account isn't "disabled" - the star isn't special; it'll just never match a hashed passwd. changing the root passwd on the command line is /exactly/ the same as doing it via netinfo manager.
     
t_hah
Mac Elite
Join Date: Dec 2000
Location: Tempe, AZ
Status: Offline
Reply With Quote
Jan 15, 2002, 06:33 PM
 
Thank you guys for all the help...hopefully with some time I will be comfortable with this new system.

t
     
   
 
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -4. The time now is 05:22 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,