Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 May 2000 20:37:11 -0500 (CDT)
From:      Bruce Burden <brucegb@realtime.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: Unix Virus.. Old but Nasty
Message-ID:  <200005150137.UAA42751@sullivan.realtime.net>
In-Reply-To: <m2zopswrui.fsf@reader.ptw.com> from Harry Putnam at "May 14, 2000 05:59:49 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 
> I was quite suprised to notice that the venerable "vi" is not resident
> in /bin either.  Luckily I remembered enough about "ed" to edit
> /etc/passwrd.  But that still didn't get the job done.  
> 
	You should not be editing the /etc/passwd file. Use "vipw"
   to do that, since the pass word file is shadowed.

	I simply took the "root" entry with csh, and called it
   something else. Same UID 0, same GID 0, but now it is something
   else. That way, If all else fails, I still have that access to
   /. I hope. :-)

	For my choice of shells as "root", I then copied the old
   "root" entry, and instead of "/bin/csh", I have "/usr/local/bin/bash".
   Now "root" is running bash as the default shell.
>
> Maybe someone has a scipt that makes it more seamless.
>
	No need for a script, just need to know what buttons to push. :-)


								Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200005150137.UAA42751>