[ILUG] root account

Niall Brady bradyn at maths.tcd.ie
Thu Oct 11 20:54:51 IST 2001


On Fri, 12 Oct 2001 05:34:41 +1000, Simon Dickson said:
>I didn't think of sudo.
>Thankyou.
>
>But for the sake of knowing, what would be the best way to go about making 
>another root account. only called admin or something not root.

Use vipw, copy the root line, and change the name... then add it
to the wheel group.

I don't really see why you'd want to do that, since it's a duplicate
of an existing account, and the only difference would be a different
username and password... it'd have the same rights as root...
[and you could be opening up a whole other can of worms if you add
 in people to groups and what not]

Maybe what you're trying to do is have an account to only edit
config files?  In that case you'd want to

	1) Make a new group called (say) admingrp
	2) chgrp all the relevant files to admingrp, and make them
	   all group writable
	3) Make a new user called admin, who's a member of admingrp

It's pointless though, since a lot of daemons and stuff will have
to be HUP'ed or restarted to read in config changes, which you can
only do as root in a lot of cases.

If you're worried about clobbering setup files as root, why not
use RCS or CVS to keep old revisions of stuff?

-- 
	Niall




More information about the ILUG mailing list