Results 1 to 5 of 5
  1. #1


    Member Since
    Nov 14, 2011
    Posts
    2
    Default root password?
    I have a clean OSX 10.6.7 install. My admin account has no password.
    So I'd assume that to access the root via terminal, the password would also be blank? But it's not working...
    I've also tried changing my admin password, enabling root user in Directory Services and changing the password there...
    But nothing seems to work. I can access any part of my HDD via finder, but not via terminal.

    So is there some sort of default password that I don't know about? Or is there any way around this? I need to use the 'sudo' command for various programming tasks, but am always prompted for a password that shouldn't exist.

  2. #2

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,782
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    Try giving yourself a password and use that with sudo. I get the feeling that sudo may require a password (I could be wrong on that one though). If you don't want it to prompt you for a password, take a look here at the NOPASSWD option. Be careful with that though - this is one step closer to unrestricted access to the filesystem which can be dangerous.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  3. #3

    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,881
    Specs:
    Way... way too many specs to list.
    mike
    This machine kills fascists
    Got # ? phear the command line!

  4. #4

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,782
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    Nice find - the Canadian one thanks you.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  5. #5


    Member Since
    Nov 14, 2011
    Posts
    2
    Thanks for the help!
    Fixed it by booting up into single-user mode (cmd+s), typing 'visudo' and editing the '/etc/sudoers' file to contain 'NOPASSWD' for both root and admin users. After a quick reboot, everything worked perfectly!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. root as default terminal login
    By ecarter202 in forum OS X - Operating System
    Replies: 4
    Last Post: 12-14-2012, 09:20 AM
  2. If you have jailbroken your iPhone, your default root password is “alpine.”
    By shokosugi in forum iPhone Hardware and Accessories
    Replies: 2
    Last Post: 10-07-2008, 01:47 AM
  3. root password
    By tobywuk in forum Switcher Hangout
    Replies: 7
    Last Post: 09-11-2007, 06:26 AM
  4. root password
    By pirho in forum OS X - Operating System
    Replies: 10
    Last Post: 04-23-2007, 11:44 PM
  5. Root Password?
    By mgmcc in forum OS X - Operating System
    Replies: 4
    Last Post: 04-05-2007, 06:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •