Operating System - HP-UX
1755096 Members
1847 Online
108829 Solutions
New Discussion юеВ

Re: SUDO Setup on my hp-ux 11.0

 
SOLVED
Go to solution
John Payne_2
Honored Contributor

Re: SUDO Setup on my hp-ux 11.0

Laurie,

I believe that command you are asking about shows the sudo permissions for the current user. ie when I am logged in as 'jjp' and run the command 'sudo -l -u sgj3', I get the following output:

Bastian:jjp /etc/default# sudo -l -u sgj3
User jjp may run the following commands on this host:
(root) /opt/ignite/bin/
(root) /opt/pred/bin/
(root) /etc/opt/resmon/lbin/
(root) /opt/ssh/bin/sftp2
(root) /usr/bin/
(root) /usr/sbin/
(root) /usr/contrib/bin/
(root) /sbin/init.d/
(root) /opt/unicenter/bin/
(root) /opt/unicenter/atech/services/bin/
(root) /opt/sudo/sudo-1.6.3p7/visudo
(root) /opt/hpnp/bin/jetadmin

Telling me what permissions I have and ignoring the 'sgj3' string. I can not run the command as root because I have disabled root sudo access. (See previous post about root using sudo.) I am not sure how you can confirm how to do that other than 'su - netbkup' and then run the 'sudo -l' command. There doesn't seem to be any other way...

Hope it helps.

John
Spoon!!!!
Jim Hendrick
Advisor

Re: SUDO Setup on my hp-ux 11.0


Sudo's main page is at:

http://www.courtesan.com/sudo/index.html
where the latest version is 1.6.3p7

The HP porting and resource center has 1.6.2b1

If you can, I would build the latest. The
build and install are very straightforward.

If you have questions, etc. that you cannot find on the Sudo site, I will try to help.

Later,

Jim H.

Jim Hendrick
Advisor

Re: SUDO Setup on my hp-ux 11.0

OK, OK, I somehow didn't see the TEN other replies...

sounds like you are in good hands.