Go Back   MacRumors Forums > Apple Systems and Services > OS X

Reply
 
Thread Tools Search this Thread Display Modes
Old Sep 11, 2009, 05:48 PM   #1
runebinder
macrumors 6502a
 
runebinder's Avatar
 
Join Date: Apr 2009
Location: Nottingham, UK
Snow Leopard: Sudo root not accepting the password I set.

Ok so opened Directory Utility, unlocked it and then selected Enable Root User and set a password, locked Directory Utility opened terminal and typed sudo root.

When I entered the password I set I just get "Sorry, try again". Have tried going back into Directory Utility and changing the password but get the same thing, any ideas?
__________________
15" 2012 Retina MacBook Pro i7 2.3GHz/8GB/256GB Yosemite

iPhone 5s 32GB Space Grey iOS 8
runebinder is offline   0 Reply With Quote
Old Sep 11, 2009, 05:52 PM   #2
gilkisson
macrumors 65816
 
gilkisson's Avatar
 
Join Date: Sep 2008
Location: Myrtle Beach, Horry County (do not pronounce the "H"), South Cacalaki
Quote:
Originally Posted by runebinder View Post
Ok so opened Directory Utility, unlocked it and then selected Enable Root User and set a password, locked Directory Utility opened terminal and typed sudo root.

When I entered the password I set I just get "Sorry, try again". Have tried going back into Directory Utility and changing the password but get the same thing, any ideas?
If you are meaning to be root in a Terminal, don't do "sudo root". Do "su -" and enter the password.
gilkisson is offline   0 Reply With Quote
Old Sep 11, 2009, 05:53 PM   #3
electroshock
macrumors 6502a
 
electroshock's Avatar
 
Join Date: Sep 2009
Quote:
Originally Posted by runebinder View Post
Ok so opened Directory Utility, unlocked it and then selected Enable Root User and set a password, locked Directory Utility opened terminal and typed sudo root.

When I entered the password I set I just get "Sorry, try again". Have tried going back into Directory Utility and changing the password but get the same thing, any ideas?
You don't need to enable the root user. All you need to do is run Terminal.app then do:

$ sudo -s

...and enter your password.

If that doesn't work, is the user account you're using an administrative account?
electroshock is offline   0 Reply With Quote
Old Sep 11, 2009, 05:55 PM   #4
steerpikegg
macrumors member
 
Join Date: Nov 2007
Even better, don't enable root user, just type

sudo su
steerpikegg is offline   0 Reply With Quote
Old Jan 20, 2013, 07:45 AM   #5
ebiz
macrumors newbie
 
Join Date: Jan 2013
Same problem here

None of these solutions have worked for me.
I'm trying to install rails and i need sudo access.
the command is:
sudo gem install rails
When prompted for the password I get: "Sorry, try again"

I have enabled the root user through CoreServices.

I've tried:
sudo su
sudo -s

I believe that my user account had admin rights. It says "admin" under the account name in Users. Besides, if it didn't I'd expect to see some kind of permissions error when enabling or changing the root account password.

Any help is appreciated.
ebiz is offline   0 Reply With Quote
Old Jan 20, 2013, 08:09 AM   #6
dontpannic
macrumors 6502
 
Join Date: May 2011
Location: Orpington, Kent, UK
Disable the root account. When it asks you for a password on any sudo or Su command it's asking for YOUR password, not the root password.
dontpannic is offline   0 Reply With Quote
Old Jan 20, 2013, 08:36 AM   #7
ebiz
macrumors newbie
 
Join Date: Jan 2013
Solved

Thanks.
I is stupid.

that did it.
ebiz is offline   0 Reply With Quote
Old Jan 20, 2013, 11:48 AM   #8
kevink2
macrumors 6502a
 
Join Date: Nov 2008
Quote:
Originally Posted by electroshock View Post
You don't need to enable the root user. All you need to do is run Terminal.app then do:

$ sudo -s

...and enter your password.
Didn't know that one. I have always done sudo /bin/bash
then my password.
kevink2 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
What's my sudo password? macstatic OS X 7 Oct 10, 2013 05:54 AM
root access, su and sudo rhimbo Mac Programming 3 Aug 1, 2013 03:01 PM
snow leopard - remove password? im-loving-it OS X 4 Jan 20, 2013 09:41 AM
Yahoo not accepting password on mail app jp007 iPhone 3 Sep 24, 2012 10:43 AM
Server not accepting USER ID/Password Cyrid Mac Basics and Help 0 Aug 21, 2012 12:25 PM

Forum Jump

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

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC