Operating System - HP-UX
1826631 Members
3671 Online
109695 Solutions
New Discussion

Re: privileges to normal user

 
Mousa55
Super Advisor

privileges to normal user

Hi
I want to create new user with privileges do not arrived to root user
And the same time don’t arrived to normal user.
In simply this user he can’t entering to SAM but he can apply some
Command which not effect on a system.
Only except swinstall command .
How to work that ?
Thanks and best regards

8 REPLIES 8
Robert-Jan Goossens
Honored Contributor

Re: privileges to normal user

Hi,

Two options.

Use "sam -r" as root an assign tasks to a specific user.

Or install sudo and configure the commands he should use.

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.9p11/

Regards,
Robert-Jan
Jeeshan
Honored Contributor

Re: privileges to normal user

Hi Nejad

Use SUDO.
a warrior never quits
Sajjad Sahir
Honored Contributor

Re: privileges to normal user

simple way is establish sam restricted build
by using
sam -r
Mousa55
Super Advisor

Re: privileges to normal user

Hi
Yesterday i am install the SUDO but i am don't know how work or using this.
and i am write man sudo but i am not found any response from it
how this software work and where i can installed ?
Robert-Jan Goossens
Honored Contributor

Re: privileges to normal user

Hi,

Add the installation directories to your PATH and MANPATH variables (/usr/local/....)

and have a look at this article
http://www.aplawrence.com/Basics/sudo.html

Regards,
Robert-Jan
AwadheshPandey
Honored Contributor

Re: privileges to normal user

you need to edit /etc/sudoers file. like
User_Alias HP = hp
Cmnd_Alias SU_ROOT = /usr/bin/su root
HP ALL = SU_ROOT,
It's kind of fun to do the impossible
Mousa55
Super Advisor

Re: privileges to normal user

Hi
I am installed SUDO command under the /user/local but the same problem
And also I canâ t see any file for SUDO command
Such as /etc/sudoers , but I am applay find command on SUDO
And founded this
#find / -name sudo
/usr/local/bin/sudo
/usr/local/doc//sudo
/var/adm/sw/products/sudo
And I moving the /usr/local/bin/sudo to /usr/bin/sudo by using mv /usr/local/bin/sudo /usr/bin/sudo command
But the same problem.
thanks
Robert-Jan Goossens
Honored Contributor

Re: privileges to normal user

Hi,

Dont move the sudo file to /usr/bin, add /usr/local/bin and /usr/local/etc to your PATH.

The sudoers file has to be created manualy the first time, if i'm not mistaken there should be an example in the /usr/local. Just search for it.

Please have a look at the link I gave you in my previous message.
http://www.aplawrence.com/Basics/sudo.html

Best regards,
Robert-Jan