1753962 Members
7392 Online
108811 Solutions
New Discussion юеВ

sudoers set-up

 
Marylou Kohlmeier
Frequent Advisor

sudoers set-up

I'm trying to set-up our sudoers, but having a difficulty. Can someone please provide assistance?

thank you in advance,
Marylou
College of the Canyons
Santa Clarita, CA
7 REPLIES 7
gr8
Advisor

Re: sudoers set-up

use visudo command to add entries to sudoers
Fabian Brise├▒o
Esteemed Contributor

Re: sudoers set-up

Hello Marylou.

What kind of problems are you having ?

What O.S. Version ?

What are you trying to do ?
Knowledge is power.
Marylou Kohlmeier
Frequent Advisor

Re: sudoers set-up

Thank you for your response.

I did that, but would like to see some sample parameters for User_alias, Runas_Alias, Host_Alias,and Cmnd_Alias
Adam W.
Valued Contributor

Re: sudoers set-up

Marylou,
To configure sudo you need to take this steps.
/usr/sbin/visudo it will open the file /etc/sudoers
put these entry into it
%groupname servername=/usr/sbin/diskinfo,/usr/sbin/swlist
or
username servername=/usr/sbin/diskinfo,/usr/sbin/swlist

Save the file

switch to user username
run
sudo /usr/sbin/diskinfo
it will ask passwd of the user
There are two types of people in the world, Marines and those who wish they were.
Jaime Bolanos Rojas.
Honored Contributor

Re: sudoers set-up

Marylou,

This old thread can help you find some of the examples that you are looking for:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1241858&admit=109447626+1225814056711+28353475

Also searching here through the forums you can find more information, as well as the sudo main website

http://www.gratisoft.us/sudo/intro.html

Regards,

Jaime.
Work hard when the need comes out.
Marylou Kohlmeier
Frequent Advisor

Re: sudoers set-up

sudo: must be setuid root

I get the error above when I tried this command:
"sudo -l"
Dennis Handly
Acclaimed Contributor

Re: sudoers set-up

>sudo: must be setuid root

What is the permissions and owners of sudo?
It should be owned by root and probably look at least like "-r-s...", that "s" for setuid.