Operating System - HP-UX
1833883 Members
1655 Online
110063 Solutions
New Discussion

Re: user modify questions

 
CharliePuyol
Advisor

user modify questions

I got two user modify questions:

- I want to give a user the root privileges, is there any way to give it withouth modifying the User ID.

- Is there a way to give an user two user ids?

Thanks!

Charlie Puyol Cabeza de Vaca Terrance
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor

Re: user modify questions

Hi Charlie:

> I want to give a user the root privileges, is there any way to give it withouth modifying the User ID.

You could set 'sudo' such that the times your user needs privileges it's granted. You could also make a 'setuid' wrapper for the particular command you need to run.

> Is there a way to give an user two user ids?

No, it's the UID (number) that matters. The UID is mapped to a name for the convenience of humans.

Regards!

...JRF...
vishnu.khandare
Respected Contributor

Re: user modify questions

1) Replace the user id 0 as root in /etc/passwd file in tht users line to grant root access to other as root privileges.
2)user ids are specific cant be two.
You should deserve before U desire!!!!
Kapil Jha
Honored Contributor

Re: user modify questions

Its better to use sudo rather than assigning UID as 0.

if this is a regular practice and u can afford 3rd party software.....go for powerbroker etc.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Hakki Aydin Ucar
Honored Contributor

Re: user modify questions

Hi,

I agree with JRF for the first question, use sudo.

and besides, if you have SAM ( OS version 11iv3 has no longer SAM as far as I know)
you can use Restricted SAM;

# # sam â r

## Invoke the Restricted SAM Builder. This
enables the system administrator to provide
limited non-superuser access to SAM functionality.
nightwich
Valued Contributor

Re: user modify questions

Hi Charlie


Give a try for RBAC.


Regards.
Viktor Balogh
Honored Contributor

Re: user modify questions

> Is there a way to give an user two user ids?

No. Go either for RBAC, or add the users in question to a common group, and add group-wide permissions to the files.
****
Unix operates with beer.