New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus ē Advice and insight from world-class Apple enthusiasts ē Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Default root password?


Post Reply New Thread Subscribe

 
Thread Tools
Spectre

 
Member Since: Nov 14, 2011
Posts: 2
Spectre is on a distinguished road

Spectre is offline
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.
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,671
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
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
Personal Twitter
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,624
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
You are correct oh Canadian one.

Mac OS X: sudo command requires a non-blank admin password

mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,671
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
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
Personal Twitter
QUOTE Thanks
Spectre

 
Member Since: Nov 14, 2011
Posts: 2
Spectre is on a distinguished road

Spectre is offline
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!
QUOTE Thanks

Post Reply New Thread Subscribe


« After a month of kernel panics, my computer will no longer start. | How to make a Bootable Lion install disc »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting 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
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Help needed ASAP before I do a fresh install of OS X Doug b OS X - Operating System 19 07-09-2010 04:08 AM
how can a lost keychain password be replaced with a new one flunn Switcher Hangout 1 07-24-2008 03:06 PM
root password kjell1979 OS X - Operating System 3 07-11-2008 01:48 PM
Please Help!URGENT.. Password caching... jdimpas OS X - Operating System 6 03-04-2006 10:21 PM
Java From Terminal jdgti OS X - Development and Darwin 10 03-26-2005 07:16 PM

All times are GMT -4. The time now is 03:34 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?