1844875 Members
2450 Online
110233 Solutions
New Discussion

Re: sudo config

 
BKUMAR
Frequent Advisor

sudo config

Hi All

i like to configure sudo on my new servers...i downloaded and installed fine...

i copied the sudoers to /etc/ and edited the User_Alias
and wne i execute it gives me below mesg
$sudo
Sorry, sudo must be setuid root.

can anyone lead me to configure these sudo..thx in advance
Unix Administration Most Dedicated and Challenging Career in the World
4 REPLIES 4
S.K. Chan
Honored Contributor

Re: sudo config

You need to ..
# chmod 4111
to set the setuid bit.

Now try again ..
Alex Glennie
Honored Contributor

Re: sudo config

see http://www.courtesan.com/sudo/troubleshooting.html

FAQ and Troubleshooting Tips

Q) Sudo compiles but when I run it I get "Sorry, sudo must be setuid root."
and sudo quits.
A) Sudo must be setuid root to do its work. You need to do something like
`chmod 4111 /usr/local/bin/sudo'. Also, the filesystem sudo resides
on must *not* be mounted with the nosuid mount option or sudo will
not be able to work. Another possibility is you may have '.' in
your $PATH before the directory containing sudo. If you are going
to have '.' in your path you should make sure it is at the end.


BKUMAR
Frequent Advisor

Re: sudo config

Thanks Chan and Alex

i am able to execute sudo now....is there any addition security things i have to do..since i have to assign for Openview/Network people...expert tips

thanks again
Unix Administration Most Dedicated and Challenging Career in the World
Ross Zubritski
Trusted Contributor

Re: sudo config

There is a pretty good sudo tutorial with an example sudoers files here: http://www.komar.org/pres/sudo/

Regards,

RZ