Go Back  Mac-Forums.com  > Software > OS X - Operating System > OS 10.4 - How To Set The Root Password on Mac OS X?

Reply
 
LinkBack Thread Tools
Old 05-25-2006, 03:26 PM   #1 (permalink)
mac57

 
mac57's Avatar
 
Member Since: Apr 29, 2006
Location: St. Somewhere
Posts: 4,529
mac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant future
Mac Specs: Mac Pro, 3.2 GHz 8 Core, 8 GB RAM, 2*750 GB Disk, nVidia 8800 GT
OS 10.4 - How To Set The Root Password on Mac OS X?

I have just switched to Mac, from Windows and Linux. I have had my new Mac (a Power Mac G5, OS X 10.4.6) for about a week now. Today, for the first time, I tried out sudo and just su itself. Trouble in paradise...

su prompted me for a password. At no time during the set up of this Mac was I ever asked to enter a root password - I had hoped it simply hadn't been set, and typing "su" would just log me in as root. Is there a default password that all Macs come with that I can use? Alternately, is there some way of setting the root password at this point?

For sudo, once I get past being able to log in as root, I will need to find the Mac OS X equivalent of what in Linux would be /etc/sudoers. Where does this live on the Mac?

Thanks!
__________________
My Macs: Mac Pro, 3.2 GHz 8 Core, MacBook Pro, 2.2 GHz C2D
My iStuff: 32 GB iPhone 3G S, 30 GB iPod Video, 16 GB iPod Touch
My OS': Mac OS X Leopard, Mac OS X Tiger, openSUSE 10.3, Win XP
I was on the Mac-Forums honor roll for September 2007
mac57 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this post
Reply With Quote
Old 05-25-2006, 03:39 PM   #2 (permalink)
TBoblp

 
TBoblp's Avatar
 
Member Since: May 11, 2006
Location: South Florida
Posts: 140
TBoblp is on a distinguished road
Mac Specs: 20" Intel iMac, 15" Powerbook G4 (sold), 20GB iPod (nearing death)
There may be a different way to do it than this, but trust me...it works. And you can look and ask around, it does work:

Get your OSX restore/install and put it in. Click on Install Mac OS. You'll be asked to restart. Do it. You're not going to resinstall, just keep going through windows of the installer until you get to one called utilities or something. one of the choices is reset password. change the password to something you know and then quit the installer.
__________________
Jazz is life

"Master your instrument, master the music, and then forget all that **** and just play.”
-Charlie Parker
TBoblp is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this post
Reply With Quote
Old 05-25-2006, 03:40 PM   #3 (permalink)
rman

 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,190
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac Specs: 2 x 3.0GHz Quad-Core, 6GB OS X 10.5.7
Cool

Your admin pass word should work with sudo. To use su you would need antohter user. As you said with root. The root user is disabled by default with OS X. You will have to enalbe root and give it a pass word to be able to su to it.
__________________
Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!
rman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this post
Reply With Quote
Old 05-25-2006, 04:43 PM   #4 (permalink)
mac57

 
mac57's Avatar
 
Member Since: Apr 29, 2006
Location: St. Somewhere
Posts: 4,529
mac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant future
Mac Specs: Mac Pro, 3.2 GHz 8 Core, 8 GB RAM, 2*750 GB Disk, nVidia 8800 GT
So, the root user ID doesn't exist at all? That would be consistent with what I see in the Users preference panel. This is just fine if I can set up a sudoers file somewhere, so that I don't have to go through the password challenge/response for every "sudo" based command. Is there a Mac OS X equivalent of sudoers?
__________________
My Macs: Mac Pro, 3.2 GHz 8 Core, MacBook Pro, 2.2 GHz C2D
My iStuff: 32 GB iPhone 3G S, 30 GB iPod Video, 16 GB iPod Touch
My OS': Mac OS X Leopard, Mac OS X Tiger, openSUSE 10.3, Win XP
I was on the Mac-Forums honor roll for September 2007
mac57 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this post
Reply With Quote
Old 05-25-2006, 05:23 PM   #5 (permalink)
Benjamindaines

 
Benjamindaines's Avatar
 
Member Since: Jan 08, 2005
Location: A religiously oppressed state
Posts: 2,821
Benjamindaines is just really niceBenjamindaines is just really niceBenjamindaines is just really niceBenjamindaines is just really niceBenjamindaines is just really nice
Mac Specs: 17" MacBook Pro
Navigate to /Applications/Utilities and open NetInfo Manager. Select Security > Authenticate and type your administrator password (login password). Now go Security > Enable Root User, from there it will be pretty obvious. To disable the root user (suggested when you are done) open NetInfo Manager again, authenticate and then disable the root user from the Security menu.

--Cheers
__________________
updated January 3
Come Join the IRC Chat! | Flickr Group | °DainesProduction | Pownce
Benjamindaines is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this post
Reply With Quote
Old 05-26-2006, 06:39 PM   #6 (permalink)
JunMacTech
Guest
 
Posts: n/a
Quote:
Originally Posted by mac57
So, the root user ID doesn't exist at all? That would be consistent with what I see in the Users preference panel. This is just fine if I can set up a sudoers file somewhere, so that I don't have to go through the password challenge/response for every "sudo" based command. Is there a Mac OS X equivalent of sudoers?
Are you logged in as an administrator when you are trying to use sudo? All users with admin privs should be in the sudoers list by default. You shouldn't be prompted for a password.
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this post
Reply With Quote
Old 05-29-2006, 01:05 PM   #7 (permalink)
mac57

 
mac57's Avatar
 
Member Since: Apr 29, 2006
Location: St. Somewhere
Posts: 4,529
mac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant future
Mac Specs: Mac Pro, 3.2 GHz 8 Core, 8 GB RAM, 2*750 GB Disk, nVidia 8800 GT
Thanks all. When I am being prompted for the sudo password, I have just opened a Terminal window and typed "sudo some-command". There is only one user on this machine, and that is me. I do have admin priveledges - I am asked for the password from time to time on software installs and it works. Based on what you said, I should be in the sudoers file then?
__________________
My Macs: Mac Pro, 3.2 GHz 8 Core, MacBook Pro, 2.2 GHz C2D
My iStuff: 32 GB iPhone 3G S, 30 GB iPod Video, 16 GB iPod Touch
My OS': Mac OS X Leopard, Mac OS X Tiger, openSUSE 10.3, Win XP
I was on the Mac-Forums honor roll for September 2007
mac57 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this post
Reply With Quote
Old 05-29-2006, 02:54 PM   #8 (permalink)
rman

 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,190
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac Specs: 2 x 3.0GHz Quad-Core, 6GB OS X 10.5.7
Cool

If I remember correctly, being in the sudoers file will only allow you to use the sudo command. You will always have to enter the pass word when using it.
__________________
Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!
rman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this post
Reply With Quote
Old 05-29-2006, 03:02 PM   #9 (permalink)
Benjamindaines

 
Benjamindaines's Avatar
 
Member Since: Jan 08, 2005
Location: A religiously oppressed state
Posts: 2,821
Benjamindaines is just really niceBenjamindaines is just really niceBenjamindaines is just really niceBenjamindaines is just really niceBenjamindaines is just really nice
Mac Specs: 17" MacBook Pro
Quote:
Originally Posted by rman
If I remember correctly, being in the sudoers file will only allow you to use the sudo command. You will always have to enter the pass word when using it.
That is correct.
__________________
updated January 3
Come Join the IRC Chat! | Flickr Group | °DainesProduction | Pownce
Benjamindaines is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this post
Reply With Quote
Old 05-29-2006, 03:16 PM   #10 (permalink)
baggss

 
baggss's Avatar
 
Member Since: Oct 10, 2004
Location: Margaritaville
Posts: 7,478
baggss has a reputation beyond reputebaggss has a reputation beyond reputebaggss has a reputation beyond reputebaggss has a reputation beyond reputebaggss has a reputation beyond reputebaggss has a reputation beyond reputebaggss has a reputation beyond reputebaggss has a reputation beyond reputebaggss has a reputation beyond reputebaggss has a reputation beyond reputebaggss has a reputation beyond repute
Mac Specs: Quad 2.5Ghz PowerMac G5 / 1Ghz iBook G4 / OSX 10.5.8 /iPhone 3G
Quote:
Originally Posted by TBoblp
There may be a different way to do it than this, but trust me...it works. And you can look and ask around, it does work:

Get your OSX restore/install and put it in. Click on Install Mac OS. You'll be asked to restart. Do it. You're not going to resinstall, just keep going through windows of the installer until you get to one called utilities or something. one of the choices is reset password. change the password to something you know and then quit the installer.
On 10.4 it's the second install screen (when booted from the DVD) and it's under utilities.

I have the root account enabled on all the Mac in my house.
__________________


I stopped Twittering, it's stupid..
baggss is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this post
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Disillusioned Mac desigener switches to Windows mogwai Anything Goes 21 05-11-2006 03:05 PM
Thinkmac & Mac Tips Daily! Contest - Win some cool stuff onestep Anything Goes 1 04-07-2006 04:26 PM
Your Mac Life tonight... schweb Anything Goes 0 03-26-2003 01:21 PM
Mac Users Get More ISP Choices schweb Apple Rumors and Reports 1 03-06-2003 11:57 AM

 
 
 
     
Home Calendar Get New
     

Copyright ©2001-2009 Mac-Forums.com. All Rights Reserved. A division of iNET Interactive.

Other iNET Interactive Sites: Web Hosting Talk | Swish Talk | Hosting Catalog.com| Dev Papers| Deleted Domains| Hot Scripts

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