Heh, all of this reminds me of last week, while I was setting
up a webserver.

I thought (briefly) about adding a user named web.....  and this
is (as best I can recall) what my fingers typed, with a bit of
commentary.

[ratbert ~] adduser -d /var/www/http web 
(added user, let RH figure out what to use for GID/UID)
[ratbert ~] su -l web
[ratbert ~web] ls
(checked to see account existed, etc. Decided to get rid of user web)
[ratbert ~web] deluser web
(error; deluser is wrong command, it's userdel)
[ratbert ~web] exit 
(exasperated, thinking "I can't remove the account while logged into it!")
[ratbert ~] userdel
(remembered correct command... typed it in and fingers slipped....)
login:
(Huh?  What just happened?)
login: root
password: <pass>
"No user root"

OMG!  I've just deleted ROOT, not web.

Booted up in single user mode, readded root, removed web, and
filed under "Stupid Unix Tricks"

Bill Ward

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 26, 2002 6:14 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Copy of Root account
> 
> 
> On Fri, Jul 26, 2002 at 02:47:51PM -0400, Kevin Keithan wrote:
> > I want to make a copy of the root account on my RH7.2 
> server.  I have shadow passwords enabled and tried to put a 
> user in as group zero but that failed.  I'm in need of  some help.
> 
> Hei
> 
> If you mean that you want to create another user which has
> the same user and group id as root (take your pick) 
> you need only open /etc/passwd in your favourite editor
> and change the third (user id) and fourth (group id)
> fields to 0 of a user that is already on the system.
> 
> That user would log in as usual but would would have
> root powers - infact to the system that person would
> be root.
> 
> Of course, I do not recommend doing this myself.
> 
> t.irvine
> > 
> > 
> > Kevin Keithan



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to