Operating System - HP-UX
1824918 Members
3795 Online
109677 Solutions
New Discussion юеВ

Creating a User with root Privileges

 
SOLVED
Go to solution
Lesley Adams
Occasional Contributor

Creating a User with root Privileges

How do i create a user with root privileges on a unix hp11.0 server
4 REPLIES 4
Steven E. Protter
Exalted Contributor
Solution

Re: Creating a User with root Privileges

Shalom,

Well you really shouldn't its a security violation of the highest degree.

useradd
vipw
# This edits the /etc/paswd file
Change the numeric user id to zero.

The user now has root priviledges with all the risks incumbant in such a setup.

Much better btw to give the user sudo priviledges on the commands he/she actually needs.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
MarkSyder
Honored Contributor

Re: Creating a User with root Privileges

I would agree with everything SEP has said and would add one more reason why you should not do this: if you subsequently decide to delete the user and associated files, the system will delete all files owned by uid 0: i.e. all files belonging to root.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Fabian Brise├▒o
Esteemed Contributor

Re: Creating a User with root Privileges

I agree with the two previous posts, this is not recomendable, you can also do this using SAM.

Knowledge is power.
Peter Godron
Honored Contributor

Re: Creating a User with root Privileges

Lesley,
you may get a better solution if you specified the outcome you would like to see.

For example, if you wanted to grant access to some commands you use sudo, but if you want to get the user to access SAM, you can give restricted SAM provileges (see "man sam").

Note: 11.0 is out of support since 31/12/06

Also, could you please complete your earlier thread,which I assume is now completed ?
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1038528