1834414 Members
1945 Online
110067 Solutions
New Discussion

user permisions as root

 
Sameh Roufail
Occasional Advisor

user permisions as root

Hello all,
I need your help. I want to create a user with some root permisions. I believe that their a way to do that but I can't find it. Could you please help me?
My system is HP9000 running HPUX 11.00.
Thanks.
Sameh Roufail
4 REPLIES 4
Rob Fisher
Advisor

Re: user permisions as root

Hi,

What kind of tasks do you want the users to do?

You can just set a sticky bit on the file that you want the users to run but that will leave a hole, depending on how you trap the script/executable.

You could also use sudo. Just check http://software.hp.com and search for sudo.
May the winds of life keep you on the right tack
Scott Van Kalken
Esteemed Contributor

Re: user permisions as root

get a program called sudo

this allowes specified users to run specified programs / commads as root.

You can obtain it from the HPUX porting and archive centre:

http://hpux.connect.org.uk/
Michael Tully
Honored Contributor

Re: user permisions as root

Hi,

Other than using 'sudo' which can be found
at the following link, you could also
consider using SAM with the nominated
restrictions.

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.2b1/

# sam -r (is used to build it.)

man sam

Cheers
~Michael~
Anyone for a Mutiny ?
Steven Sim Kok Leong
Honored Contributor

Re: user permisions as root

Hi,

I agree with Michael. I personally find Restricted SAM robust and easy to configure for such purposes. In my environment, I use restricted sam heavily to create operator tasks that require superuser privileges.

You can add your own scripts to sam and then use sam -r to configure the users and privileges to your scripts.
Remember to set /usr/sbin in the normal user's PATH (by default, it is not in the PATH of a normal user) or use an alias for sam so that the user does not need to execute the full pathname to launch sam.

Hope this helps. Regards.

Steven Sim Kok Leong