Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > su password

su password
Thread Tools
Senior User
Join Date: Oct 2001
Status: Offline
Reply With Quote
Oct 24, 2004, 12:00 PM
 
i just need it for an ipfw command. i'm not sure if i ever set the password or what it is... how can i find out or properly reset it without losing data?
     
Mac Elite
Join Date: May 2001
Location: Earth
Status: Offline
Reply With Quote
Oct 24, 2004, 04:40 PM
 
The root account is locked by default. You can use sudo instead, with your password (assuming your are admin on the machine).


sudo -s

(to get a root shell)

or

sudo ipfw param1 param2....

(to execute ipfw as root)
     
Fresh-Faced Recruit
Join Date: Oct 2003
Location: Joliet, IL
Status: Offline
Reply With Quote
Nov 7, 2004, 08:19 PM
 
You can also run 'sudo password root' to set the root password.
     
reemas  (op)
Senior User
Join Date: Oct 2001
Status: Offline
Reply With Quote
Nov 7, 2004, 09:07 PM
 
isnt leaving sudo open like that less secure?
     
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Nov 8, 2004, 12:58 AM
 
Originally posted by reemas:
isnt leaving sudo open like that less secure?
Sure, if your password sucks.

But really there's no need to enable the root user. For most purposes, the following should work well:
Code:
sudo command
If you do need a root shell (or if you're just tired of using sudo before each command) use:
Code:
sudo -s
If you need a REAL root shell, run this:
Code:
sudo su -
"su" will make you the super user, and the trailing "-" will make that shell a login shell, effectively starting you up from that user's home directory and reading in environment variables and all that good stuff (note: You can use "su" to become ANY user as long as you know that user's password. "su johndoe", for example).
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Nov 8, 2004, 05:21 AM
 
Originally posted by reemas:
isnt leaving sudo open like that less secure?
Only Administrator-class users have an open sudo. Regular users do not.

This does mean that you need to guard Administrator passwords as closely as you would guard the root password. However, this doesn't actually undermine your security much.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
   
Thread Tools
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -5. The time now is 06:57 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2