[NTLUG:Discuss] MAJOR mess

R P Herrold herrold at owlriver.com
Sat Oct 27 09:42:53 CDT 2001


On Sat, 27 Oct 2001, Jim Wildman wrote:

> Oh sure you're _supposed_ to....but real geeks edit passwd with
> echo "newuser::..." >> /etc/passwd.  They don't even bother with vi!

... ohhh ... we geeks could accidentally make that root userid
deletion too -- my fingers might slip and type:

  grep -v ^root: /etc/passwd > /etc/pwtemp ; mv /etc/pwtemp \
	/etc/passwd

and I'd be in the same mess ... (more ...)

MUCH worse would be:

  grep -v ^root: /etc/passwd > /etc/passwd

Anyone want to comment why <grin>?

-- Russ Herrold




More information about the Discuss mailing list