1832087 Members
2888 Online
110037 Solutions
New Discussion

Sudo INstalltion

 
hien
Occasional Advisor

Sudo INstalltion

guys, im trying to install sudo_1.6.6.depot and installed it via swinstall ...it was intalled in /opt/sudo.. when i tried running got this error, "Sorry, sudo must be setuid root" i have 2 questions forthis.

1. why this error happnd?
2. should i not use swinstall for this and instead compile for it?

thanks
4 REPLIES 4
Patrick Wallek
Honored Contributor

Re: Sudo INstalltion

Yes you should use swinstall to install this.

The problem is that the permissions on the sudo executable are incorrect. You need to do:

# chmod u+s /opt/sudo/bin/sudo

or

# chmod 4555 /opt/sudo/bin/sudo
Alzhy
Honored Contributor

Re: Sudo INstalltion

I have never used a prebuilt SUDO from the porting centre or anywhere else. I always build it (since we have some customizations, ie. logging, lookups, DNS.. etc.) and use the Makefile.

Have you tried swremoveing and reinstalling? What are the permissions of /opt/sudo/bin/sudo?

Hakuna Matata.
Alzhy
Honored Contributor

Re: Sudo INstalltion

Well if it did not install the sudo executables "properly" - using swinstall -- then I won't even trust this depot.

If I were you -- I'd download the sources (and the dependencies) from "known sites" -- check MD5 signatures and build/customize your own. You'll be amazed at the various custmizations that you can do to SUDO..
Hakuna Matata.
Sanjay_6
Honored Contributor

Re: Sudo INstalltion

Hi,

I think i also has similar issues. My current sudo file permissions are set to 6555. I now simply copy the sudo binaries and the sudoers between servers using a tar archive.

Hope this helps.

Regds