HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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

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...