1825715 Members
3084 Online
109686 Solutions
New Discussion

seudo permission

 
Waugh
Frequent Advisor

seudo permission

Hi,

How to give sudo permission to particular user.

Regards
Rkumar
4 REPLIES 4
OFC_EDM
Respected Contributor

Re: seudo permission

type "man sudo" for instructions.

The editor to edit the /etc/sudoers file is "visudo". Not that's one word...don't do
"vi sudo"

Check out this thread
http://forums.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1222870521561+28353475&threadId=1250158


Regards,
Kevin
The Devil is in the detail.
OFC_EDM
Respected Contributor

Re: seudo permission

I forgot to mention the /etc/sudoers file usually has examples in it. Worth a read.

The Devil is in the detail.
Sandeep_Chaudhary
Trusted Contributor

Re: seudo permission

exaple:

vi /etc/sudoers

User_Alias FULLTIMERS = millert, mikef, john
Host_Alias HPUX = sux*
Cmnd_Alias SU = /usr/bin/su
# on the alphas, john may su to anyone but root and flags are not allowed
FULLTIMERS HPUX = /usr/bin/su -


Suraj K Sankari
Honored Contributor

Re: seudo permission

Hi,
For sudo access run

#/usr/local/bin/visudo
it will open the file /etc/sudoers into vi

username=/usr/bin/cancle

If you want same with no passwd then do like this


username=NOPASSWD:/usr/bin/cancle

If you want to see how many command you can run with sudo then give sudo -l
/usr/bin/cancle

Suraj