Solved

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

Posted on 2006-10-31
6
8,289 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
Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

 
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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Reinstall Mac OSx 13 52
t-sql sp_addlinkedserver possible risks 3 92
Sluggish MBP browser 17 80
Shared folders from Windows 7 Pro PC to Mac OS Sierra 3 44
Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
This article will show, step by step, how to integrate R code into a R Sweave document
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

808 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