Solved

How can I recover (or change) my root password on a MacBook

Posted on 2006-10-31
6
8,285 Views
Last Modified: 2013-11-24
I bought a MacBook for the combination of the underlying unix and the Mac Aps.

I have managed to install xcode, but that did not come with fortran or mpi, so I need to install gcc 4.1 directly (to get fortran).

I have not been able to install gcc 4.1 without a root password.  I have no idea what the root pasword is (I was never asked to choose one) and no idea how to reset it.

Please help!

Thanks,
  Ken
0
Comment
Question by:klopter
6 Comments
 
LVL 39

Assisted Solution

by:Eoin OSullivan
Eoin OSullivan earned 100 total points
ID: 17848813
The root password is the one that is associated with the Administrator or root account on your Mac.
When you install or upgrade applications like iTunes using software update it usually prompts you for a password .. the same one.
If you are the default user .. then your user account should have administrator privileges.
Use the same password you use to logon to your Mac or to install Software updates (there may be NO password set if you left the password field blank during setup!)
0
 
LVL 9

Assisted Solution

by:heteronymous
heteronymous earned 100 total points
ID: 17849762
If working in the command-line, you'll need to use sudo
sudo <my command>

and the password asked for will be your main account (Admin, UID 501) password.

If you need to reset the password because you've lost it, boot from the Apple install DVD and use the Reset Password utility availabled from the top menu once booted from DVD , and after selecting the "use english" initial window.
0
 
LVL 12

Assisted Solution

by:benhanson
benhanson earned 100 total points
ID: 17854923
By default in OS X, the root account is 'disabled'.  Really it is just disabled from a user perspective, since much of the system is of course running as root.  You need to 'enable' root by going to \Applications\Utilities, open NetInfo Manager.app, click on the Security menu and click "Enable Root User"
0
Give your grad a cloud of their own!

With up to 8TB of storage, give your favorite graduate their own personal cloud to centralize all their photos, videos and music in one safe place. They can save, sync and share all their stuff, and automatic photo backup helps free up space on their smartphone and tablet.

 
LVL 12

Accepted Solution

by:
dalesit earned 100 total points
ID: 17855093
Actually, you don't need to enable the root user. If you want a root shell, you can use

sudo -s

which will give you a root shell with which you can do anything you like. However, the password you put in is that of your own user. This is more secure than enabling the root user, as root is always tried in hacking attacks. Using sudo, it is not possible to login directly as root.

Cheers,

Joel
0
 
LVL 6

Assisted Solution

by:manicsquirrel
manicsquirrel earned 100 total points
ID: 17919937
If you ever need to reset root pwd because you forgot it or something, just boot the mac to the OSX install CD.  Once the installer starts, click on the Apple menu in the upper left and select "Reset Root Password"
0
 

Author Comment

by:klopter
ID: 17920965
Wow, this is amzing.  All five of these answers are relevant to me and provide me with a different piece of the puzzle.  I will stick to sudo for now (using my regular account password), but it is nice to know that I can enable root and set the password if that becomes truly neessary.

Thanks all!
  Ken
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
bigHeights  challenge 13 60
How to uninstall icloud from my windows 7 PC! 4 89
SQL400 max size 5 78
Not seen Link button 5 15
Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
Set up iPhone and iPad email signatures to always send in high-quality HTML with this step-by step guide.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now