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 > Ut-oh ... lost "su" password

Ut-oh ... lost "su" password
Thread Tools
shadybirdstan
Mac Enthusiast
Join Date: Feb 2001
Location: Work: NYC Live: NJ
Status: Offline
Reply With Quote
Sep 3, 2008, 09:54 AM
 
Hello, I'm hoping somebody can help me here. It seems that I no longer have my su password. I haven't switched to su in a bit in terminal and today when I tried I received the su: Sorry message.

I'm hoping there is a way that I can reset the su account's password, so any help would be GREATLY appreciated.

Thanks!
     
Chuckit
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Sep 3, 2008, 10:18 AM
 
You could deactivate and reactivate root in Directory Utility. But why do you have the account active in the first place? Why not just sudo?
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
shadybirdstan  (op)
Mac Enthusiast
Join Date: Feb 2001
Location: Work: NYC Live: NJ
Status: Offline
Reply With Quote
Sep 3, 2008, 10:35 AM
 
You know you're right, it really doesn't make much sense to use root at all.

I'll just go with sudo, much simpler solution.

Thanks for the smack in the back of the head ;-).
     
mduell
Posting Junkie
Join Date: Oct 2005
Location: Houston, TX
Status: Offline
Reply With Quote
Sep 3, 2008, 02:10 PM
 
You can reset it by booting off the OS X install disk, IIRC.
     
ntsc
Senior User
Join Date: Sep 2000
Location: Glasgow, Scotland UK
Status: Offline
Reply With Quote
Sep 11, 2008, 02:18 PM
 
as others have said its seems odd that you want to use su to get root access, sudo is, in general a better idea. i appreciate that sometimes it can be tedious to have to prefix your commands with sudo, so as a tip for these situations i suggest using

$ sudo bash

this will launch a super user shell. using this technique you never need to set a root password

obviously you still need su (switch user) if you want to operate as another normal (ie not root) user on your system.
"You can't waste a life hating people, because all they do is live their life, laughing, doing more evil."

-ALPHA ROBERTSON,whose daughter was one of four girls killed in the bombing of a Birmingham, Ala., church in 1963.
     
Big Mac
Clinically Insane
Join Date: Oct 2000
Location: Los Angeles
Status: Offline
Reply With Quote
Sep 11, 2008, 02:27 PM
 
Why not switch users using the login command?

"The natural progress of things is for liberty to yield and government to gain ground." TJ
     
Art Vandelay
Professional Poster
Join Date: Sep 2002
Location: New York, NY
Status: Offline
Reply With Quote
Sep 11, 2008, 03:54 PM
 
sudo -s will keep you in a root shell.
Vandelay Industries
     
   
 
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 08:39 PM.
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.,