root password

Joined
May 15, 2007
Messages
470
Reaction score
6
Points
18
Location
Wales, UK
Your Mac's Specs
Black macbook 2.16ghz 2GB Ram 160GB hdd | 8Gb Ipod Nano
im using the terminal to try and log in as "root" by using the command "su"

When it asks me for a password, the password i used when i first booted up osx does not work. How do i get this password that i was never asked to set?
 
Joined
May 28, 2007
Messages
55
Reaction score
0
Points
6
Does your account have administrative privileges? That could be your problem.
 
OP
T
Joined
May 15, 2007
Messages
470
Reaction score
6
Points
18
Location
Wales, UK
Your Mac's Specs
Black macbook 2.16ghz 2GB Ram 160GB hdd | 8Gb Ipod Nano
i think it should do.. i just use the account that i set up when i first turned my macbook on and set it up
 
Joined
Sep 13, 2006
Messages
3,570
Reaction score
470
Points
83
Location
Colorado
Your Mac's Specs
Mac's
it is your admin password, the password you used when you first set up OS X.

Are you sure you are entering it correctly? it IS cAsE sensitive.
 
OP
T
Joined
May 15, 2007
Messages
470
Reaction score
6
Points
18
Location
Wales, UK
Your Mac's Specs
Black macbook 2.16ghz 2GB Ram 160GB hdd | 8Gb Ipod Nano
im quite sure that the password i set up when i first set up OSX is not working
 
Joined
Feb 13, 2005
Messages
1,186
Reaction score
73
Points
48
Location
New Orleans, LA, USA
Your Mac's Specs
13" Macbook Pro 2.26Ghz Unibody 4G RAM 160G HDD Superdrive
I believe root is disabled by default. The first user you created is the administrator, and he uses sudo to do root-like things. This gives you root access to do things for a short duration. You use the password for that administrative (you) user.

For example

% sudo vi /etc/some/file.conf

It asks you for password, then you have the permission to edit such and such root-owned file.

Best practice is to not enable root. You can, but the UNIX security weenies will taunt you. :Evil:
 

rman


Retired Staff
Joined
Dec 24, 2002
Messages
12,637
Reaction score
168
Points
63
Location
Los Angeles, California
Your Mac's Specs
14in MacBook Pro M1 Max 32GB 2TB
just to second what walkerj stated. the root account is not enable. But as was stated you can use the sudo command. This protects you from doing major damage to your system.
 
OP
T
Joined
May 15, 2007
Messages
470
Reaction score
6
Points
18
Location
Wales, UK
Your Mac's Specs
Black macbook 2.16ghz 2GB Ram 160GB hdd | 8Gb Ipod Nano

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top