Operating System - HP-UX
1753554 Members
4216 Online
108795 Solutions
New Discussion юеВ

Re: re : creating of superuser account

 
Vincent_5
Super Advisor

re : creating of superuser account

Hi Guys,
Can I check how do create a similiar superuser account with superuser rights like root. Kindly advice??

Regards
Vincent
nothing is better than to know more
3 REPLIES 3
Wilfred Chau_1
Respected Contributor

Re: re : creating of superuser account

you can install and configure sudo to give a regular user root privilege.

http://www.gratisoft.us/sudo/intro.html
Dennis Handly
Acclaimed Contributor

Re: re : creating of superuser account

This may be dangerous, be warned.
You can always use vipw(1m) to clone the root line and change the login name.
James R. Ferguson
Acclaimed Contributor

Re: re : creating of superuser account

Hi Vincent:

As Dennis noted, 'vipw' and create a secondary account with a UID=0. As Wilfred suggested, I strongly urge you to install and use 'sudo'.

Now, go ahead and create some secondary account with a UID=0. Call the account 'superme', for example. Now wait some period of time and decide that you want to remove the account and any files owned by it. After all, you don't see any activity for the account. Since you are careful enough to want to preserve any files owned by the old account you do:

# find / -type f -user superme -exec chown vincent {} +

Oops! You just changed all of root's files to be owned by you!

As Dennis said, this is can be dangerous, besides being very frowned upon by any auditor worth the title.

Regards!

...JRF...