Operating System - HP-UX
1751926 Members
5295 Online
108783 Solutions
New Discussion юеВ

Re: User with root user rights

 
ajyeshB
Advisor

User with root user rights

Hello everybody,
I want to add new user with the root user rights.
I have OS: HP-UX 11.31.
How can I give the maximum access to the new added user like root?
11 REPLIES 11
sarfaraj ahmad
Trusted Contributor

Re: User with root user rights

Hi,
you can go with below options to make a user with root user rights.

1. After creating the new user you can modify the /etc/passwd file and change its user id with 0 (zero). After that this user will be root equivalent. when you will login by this user you will get # prompt, just like root user.

2. You can also go with SUDO configuration which will be better secure option than above.

Note: please be sure when you are doing this.
Bijeesh
Respected Contributor

Re: User with root user rights

Hi,
The best approach to give maximum access to the new user with root user right is configure SUDO.By using sudo you can give users rights to perticular administration commands and you exactly know who has the rights to run that commands on the system.

Changin gthe uid to 0 is also work,but think what is the level of security you are providing..?
Wim Rombauts
Honored Contributor

Re: User with root user rights

Do you want to have a regular user with ful root access, or do you really want a reglar user that has some root privileges in a few area's ?

In the first case, something like sudo or a passwordless ssh can help you.
In the last case, you can configure role based acces (search for RBAC product) and configure what root privileges you assign to that user.
Hakki Aydin Ucar
Honored Contributor

Re: User with root user rights

Earlier release of HP-UX there was
sam -r
restricted user can use some root privileges

sudo is good alternative in your case like others stated here:
http://www.gratisoft.us/sudo/sudoers.man.html#description

I am not sure if RBAC is active in 11iv3 (Role Based Account User) but it is an approach to restricting system access to authorized users and it can be used as another alternative.
ajyeshB
Advisor

Re: User with root user rights

Hi!
is SUDO is available for HP-UX B.11.31 U ia64


Thanks
Jayesh
Bijeesh
Respected Contributor

Re: User with root user rights

Hi,
sudo is a free software package and you can download it for ia64 from the following site.

http://www.sudo.ws/sudo/download.html

You can use sudo-1.7.4p4.ia64.depot.gz

Ishwar_1
Frequent Advisor
Bijeesh
Respected Contributor

Re: User with root user rights

Hi Jayesh,
You can assign points to those who helped to solve your queries.
Here it is how to do...!!
http://forums13.itrc.hp.com/service/forums/helptips.do?#33
SoorajCleris
Honored Contributor

Re: User with root user rights

https://forums13.itrc.hp.com/service/forums/helptips.do?#28
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie