Operating System - HP-UX
1834140 Members
2507 Online
110064 Solutions
New Discussion

Re: Setting up users admin rights?

 
B. Jen
Contributor

Setting up users admin rights?

I am new to HP-UX. Is there a way to give a user the basic admin functions? (i.e. reset user's password, delete a print jobs from the print queue)

Thanks in advanced for answers!
8 REPLIES 8
A. Clay Stephenson
Acclaimed Contributor

Re: Setting up users admin rights?

The tool of choice for this is a command called "sudo".

http://gatekeep.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.8p7/
If it ain't broke, I can fix that.
Rick Garland
Honored Contributor

Re: Setting up users admin rights?

The SUDO tool is the tool of choice.
Can be obtained from http://www.cortsean.com

Other option is to use restricted SAM.



DCE
Honored Contributor

Re: Setting up users admin rights?

You can assign the basic admin functions you listed via retricted SAM. It is easy to configure and the users will probably appreciate the gui interface.

Dave
Senthil Kumar .A_1
Honored Contributor

Re: Setting up users admin rights?

Hi Bernard,

Check the link.. check the excerpt on "restricted SAM" in the link...

http://docs.hp.com/en/B2355-90672/ch01s02.html
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Senthil Kumar .A_1
Honored Contributor

Re: Setting up users admin rights?

a short note on restricted sam "sam -r" is given at the end ,in the link i posted earlier..
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
piyut_1
Frequent Advisor

Re: Setting up users admin rights?

Jen,

u can install sudo software (depot file:/T1471AA_A.03.71.000_HP-UX_B.11.11_32+64.depot).
than u must configure /usr/local/etc/sudo/sudoers.
add the user that u want to grant as root:

# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
jen ALL=(ALL) NOPASSWD: ALL

after edited that file, user jen can run as root by type command "/usr/local/bin/sudo su -"

hopes this help,

piyut





Jino.P.V
Frequent Advisor

Re: Setting up users admin rights?

Hi Bernad,

the easiest way will be restricted SAM. You can assign different access to desired users.
sam -r
select the desired user
assign the access by enabling it
save the access from action menu

You can also use sudo. With sudo you can assign the privilages as shown..

abcd ALL=ALL
cdfr ALL=ALL
jpkd ALL=ALL,!SHELLS,!SU,!MISC,!SHUTDOWN,! VISUDO

this I took form the file /var/opt/sudo/sudoers. This is the file we need to update. Hope you got info about the s/w from the link others are given..
If you have a great setup you can go for Power broker which is usually aserver/client setup in which you can decide who all should be able to lofin as root

hope this may help you..

Jino
piyut_1
Frequent Advisor

Re: Setting up users admin rights?

Sorry Jen,

I have make a fault.T1471AA_A.03.71.000_HP-UX_B.11.11_32+64.depot is depot fot secure shell.
for sudo, u can search at hp.com

regards,

piyut