Hi all,
I would like to know how to run sudo. I used UNIX at work for 25 years, but not
on a Mac and we never had sudo, only su so to run a privilidged operation we
would run 'su root', supply the root password and then off we'd go.
I want to install pngcrush and have to use 'sudo' to do it.
According to the man page for sudo it says:
If the invoking user is
root or if the target user is the same as the invoking user, no
password is required. Otherwise, sudo requires that users authenticate
themselves with a password by default (NOTE: in the default
configuration this is the user's password, not the root password).
Now at this point I enter my usual password, but sudo always rejects it.
I then read on the sudo man page that my name must be in the file /etc/sudoers
to run sudo but to edit that requires root access.
I try running 'su root' and providing root's password but su rejects it. I
confirmed that my root password is correct by following Apple's instructions by
logging into Directory Utility and authenticating as root and it accepts my
root password (even though annoyingly Edit > Enable Root Password and Edit >
Change Root Password are both greyed out!).
I try 'su root' again using my root password but it rejects it.
It seems that I can login as me, as Admin, my root password is correct
(according to Directory Utility) but I can't run either su or sudo! Am I
missing something here? Any help appreciated.
Regards,
Stephen
Mr [George] Bush used the reduction as an endorsement of his climate policy,
saying: "Our guiding principle is clear: we must lead the world to produce
fewer greenhouse gas emissions.
"We must do it in a way that does not undermine economic growth or prevent
nations from delivering greater prosperity for their people." - Dec 2007
--
You received this message because you are subscribed to the Google Groups
"Sussex Mac User Group" group.
To post to this group, send an email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at
http://groups.google.com/group/smug?hl=en-GB.