Recommended Posts

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?

Link to post
Share on other sites
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.

Link to post
Share on other sites

Dug this out of my big list of darwin commands, this use to get me into Super User from non admin account by

su <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.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...