On 4 April 2012 16:11, <[email protected]> wrote: > 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. >
Does "$ sudo ls -l" work for you if so, try "$ sudo su - root". I'm executing that as a administration user. I've not separated my regular day to day account and the administration account. Let me know if that works for you. I'm not sure what the extra - does in su, so understand it might not work for you or do exactly what your wanting. The sudo will prompt for your current local account, but it doesn't prompt for my root password. John -- 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.
