PDA

View Full Version : MacOS X question


GnuVince
11-28-2002, 01:50 PM
Hum... what's the root password? I tried to run 'tcpdump' earlier, and I got an error message saying that I didn't have access to /dev/bf0 (fair enough). But I realized, that I don't have any root password to use 'su'! What shall I do?

Strike
11-28-2002, 03:53 PM
You didn't have to set it up on install? Try an empty password (i.e., just hit enter).

Hmm, I also googled and found this - http://www.macworld.com/2001/10/howto/osxsecrets.html

CFRickFC
02-01-2004, 04:29 AM
Try running "man sudo" or using an empty root password. You could also try going into a single user shell and changing your root password that way if you can (I'm not toally shure how to do it on mac os x).

php_brian
02-01-2004, 12:02 PM
I do believe you need to enable the root accout. That can be found in the Accounts icon in the System Preferences. I use OS X at school so I'm not quite sure. I do also believe you can set the root password there.

sicarius
02-01-2004, 03:09 PM
I just use sudo on osx.

If I am going to be acting as root for a prolonged period of time and don't want to keep entering the password, try the following:

>sudo echo
! will ask for password...
>sudo whatever
>sudo whatever2
.
.
.
>sudo whatever999

I don't recall what the timeout period between sudo calls it. After a while you will have to reauthenticate though.