Operating System - HP-UX
1752802 Members
5458 Online
108789 Solutions
New Discussion юеВ

Re: how to configure sudo and su2

 
SOLVED
Go to solution
pratapvfr
Advisor

how to configure sudo and su2

Hello folks,

i require info for configure sudo & su2 in hpux from where i can download this and how to configure, please guide me

thank you very much in advance :)
7 REPLIES 7
avizen9
Esteemed Contributor
Solution

Re: how to configure sudo and su2

hi,
you can download it from hp website

for su2 you need to modify .su2rc file which located in user home directory, it should have u+s permission (chmod u+s .su2rc)

for sudo
once you install sudo you can use visudo to modify sudo configuration file sudoers file,
try it let me know how it goes,
Ganesan R
Honored Contributor

Re: how to configure sudo and su2

Ganesan R
Honored Contributor

Re: how to configure sudo and su2

Hi again,

sudo documentation on how to configure..

http://www.gratisoft.us/sudo/
Best wishes,

Ganesh.
pratapvfr
Advisor

Re: how to configure sudo and su2

where logs are located for sudo and su2
can somebody SHOW ME THE SAMPLE CONFIGURATION FILE FOR BOTH,

THANKS
Patrick Wallek
Honored Contributor

Re: how to configure sudo and su2

If you have installed sudo, have a read of the 'sudoers' man page. It gives examples.

Also invokde 'visudo' and have a look at the file itself. There should be examples there.

If you don't want to do any of the above, then go here for examples:

Sudoers manual:
http://www.gratisoft.us/sudo/man/sudoers.html

Sudoers Example:
http://www.gratisoft.us/sudo/man/sudoers.html#examples
avizen9
Esteemed Contributor

Re: how to configure sudo and su2

Please follow documents which patrick has suggested, also refer below.

for su2 log files
/var/log/sulog
vi .su2rc
johan
michele
williams
yeec

sudo
you can modify sudo configuration file with visudo
you can create aliases, below example will help.

User_Alias FULLTIMERS = johan, robort Host_Alias LINUX = unix-host.domain.com Cmnd_Alias REBOOT = /sbin/reboot

johan ALL=(ALL) ALL
johan ALL (ALL) NOPASSWD: ALL

Particular commands for specific users
johan unix-host.domain.com = /usr/sbin/vipw
johan unix-host.domain.com = REBOOT
pratapvfr
Advisor

Re: how to configure sudo and su2

i am able to configured this by myself, THANKS TO ALL FOR HELP.