Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

14
  • I usually do this from a standard user account, and, at least in OS X and probably in most Unixes, these kinds of accounts aren't members of the sudoers group by default. I'm OK if the prompt changes to reflect that I'm using a different user account, but I'd rather have the prompt's style remain the same. OS X's default prompt contains the name of the account you're currently logged into, so I think that should be fine. Commented Feb 18, 2015 at 0:34
  • 1
    You could add yourself to the sudoers group or edit the /etc/sudoers file. Commented Feb 18, 2015 at 0:46
  • Should a standard user be a member of the sudoers group, though? Commented Feb 18, 2015 at 18:39
  • Sure, why not? It's your way of telling the system you're not just a "standard user", you're a user who should be allowed sudo access. Commented Feb 18, 2015 at 18:59
  • That makes sense, but I'm not sure if I'm comfortable with the idea of giving a non-administrator account the ability to use the sudo command. Doing so sounds like a security risk tantamount to just turning my standard user account into a full-blown admin one, and I don't like the idea of exposing my data like that. Commented Feb 18, 2015 at 21:29