System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Execute some command of root user

Mousa55
Super Advisor

Execute some command of root user

Hi All,

How to give normal user (such as applmgr) on HP-UX to execute some command of root user without change the GID to be identical with root GID ?

Thanks
5 REPLIES
sarfaraj ahmad
Trusted Contributor

Re: Execute some command of root user

Hi,
You can do it with SUDO and RBAC (Role Based Access Control)utility in HPUX.
Mousa55
Super Advisor

Re: Execute some command of root user

Hi,

You can give me more details.
where i can downlod this tools SUDO and RBAC (for HP-UX 11.23. 11.11), and How i can use it ?

Thanks
sarfaraj ahmad
Trusted Contributor

Re: Execute some command of root user

Hi Nejad,

you can go through the below pdf for the configuration of RBAC in detail,

h20338.www2.hp.com/hpux11i/downloads/hpux11i_rbac.pdf


and you can download SUDO package from below link,

http://hpux.connect.org.uk/hppd/cgi-bin/search?package=on&description=on&term=sudo


sarfaraj ahmad
Trusted Contributor

Re: Execute some command of root user

you can follow below steps to configure SUDO,

Once you install it. use visudo command to edit /etc/sudoers file.
Sample of that file

# User alias specification
User_Alias OPERATOR = sachin, petec, backup

# Cmnd alias specification
Cmnd_Alias DUMP = /usr/local/etc/cluster_backitup

# User privilege specification
root ALL=(ALL) ALL
OPERATOR ALL = DUMP
Note: Upercase is necessary.

sudo -l to see what is available for user.


please go through the below thread for SUDO configuration detail which will help you in this regard,

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=102058&admit=109447626+1293617541735+28353475

Best of Luck
Dennis Handly
Acclaimed Contributor

Re: Execute some command of root user

>without change the GID to be identical with root GID?

If you change your UID to be root, you are likely to change your GID to match too.