how to create a root equivalent user in linux?

Edward Croft ecroft at OPENRATINGS.com
Thu Dec 16 17:46:34 UTC 2004


On Thu, 2004-12-16 at 12:41 -0500, Mark Haney wrote:
> On Thu, 2004-12-16 at 09:40 -0800, M E Fieu wrote:
> > Hi.. I want to create a user account in linux that have root right to
> > do everything.  Is that possible?  I have done the following
> >  
> > in /etc/passwd    0 is the GID of root
> > tong:x:512:0::/home/tong:/bin/bash
> >  
> > in /etc/group
> > tong:x:0:root
> >  
> > but still doesn't work, any advice?
> >  
> >  
> Yes.  Don't.  That's a good way to take a system apart accidentally.
> However, if you insist on this, look at /etc/sudoers file.
> 
Please use visudo to edit the sudoers file. You have to log in as root
to use it and then after that the users you assign can use sudo to run
commands. 

> > 
-- 
Edward M. Croft
Sr. Systems Engineer
Open Ratings, Inc.
200 West Street
Waltham, MA 02451-1121




More information about the fedora-list mailing list