Operating System - Tru64 Unix
1753731 Members
4366 Online
108799 Solutions
New Discussion юеВ

Re: i am getting an error when try to run sudo

 
whiteSox
Frequent Advisor

Re: i am getting an error when try to run sudo

it is working ..That was not it ..the sudo command is owned by root:system so every one who can exceute this command should also be part of the system group in the /etc/groups file .Thank you all for your help...
Patrick Wallek
Honored Contributor

Re: i am getting an error when try to run sudo

>>root:system so every one who can exceute
>>this command should also be part of the
>>system group

No, not necessarily. Having everyone that needs sudo access be part of the system group could be bad anyway as that could give them access to things they don't need.

The permissions on sudo should be 'rwsr-xr-x' (at least on my HP-UX & Linux systems it is) which will allow anyone to run sudo.
whiteSox
Frequent Advisor

Re: i am getting an error when try to run sudo

it does not really matter if you give them the nopassword and ALL they have the access to the entire server any way...
OldSchool
Honored Contributor

Re: i am getting an error when try to run sudo

"it does not really matter if you give them the nopassword and ALL they have the access to the entire server any way..."


I'm not sure who that was directed at, but if

user01 (ALL)=....

worked, then you may have a name resolution issue, as in what does "hostname" return, the short name of FQDN.

Also the "nopassword" option means they don't have to provide their password when initially using sudo.

=======================

"they have the access to the entire server any way..."

And that doesn't bother you, or your security auditors?
whiteSox
Frequent Advisor

Re: i am getting an error when try to run sudo

The solution is already provided in the previous comment ..
OldSchool
Honored Contributor

Re: i am getting an error when try to run sudo

"I have assigned points to 24 of 134 responses to my questions."