shanenin Posted January 30, 2009 Report Share Posted January 30, 2009 I am trying to run some commands in my shell that require the sudo command. For whatever reason, it is not excepting my root password. Any ideas why?edit added later//I can use the sudo command from my admin account, but that seems dumb. Shouldn't I be able to run a shell from any user account and use sudo?Another thing that seems different from what I am used to. I am not able to su to my admin account from a shell started from my regular user account. Is their some thing similar to Linux, like adding the user to the "wheel" group? Quote Link to post Share on other sites
jcl Posted January 30, 2009 Report Share Posted January 30, 2009 I am trying to run some commands in my shell that require the sudo command. For whatever reason, it is not excepting my root password. Any ideas why?sudo takes the password for the account you're logged into, doesn't it? I've only seen it ask for a root password once.I can use the sudo command from my admin account, but that seems dumb. Shouldn't I be able to run a shell from any user account and use sudo?Check /etc/sudoers. From a quick google it appears that only admins can sudo by default. Quote Link to post Share on other sites
Matt Posted January 30, 2009 Report Share Posted January 30, 2009 Do you get an error when you try to sudo from your regular account?edit:Check /etc/sudoers. From a quick google it appears that only admins can sudo by default. Yeah, add your account to the file and see if it works. Quote Link to post Share on other sites
shanenin Posted January 31, 2009 Author Report Share Posted January 31, 2009 sudo takes the password for the account you're logged into, doesn't it?Thats what it seems to do. It is different then the way things seem to work with linux Quote Link to post Share on other sites
isteve Posted January 31, 2009 Report Share Posted January 31, 2009 Dug this out of my big list of darwin commands, this use to get me into Super User from non admin account bysu <admin name>sudo <command>password: <admin password>I haven't tried it in a long time because I have been running with just one account. Quote Link to post Share on other sites
isteve Posted January 31, 2009 Report Share Posted January 31, 2009 Seeing we're talking os x and terminal though I'd share this site of terminal tips. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.