From owner-freebsd-questions Sun May 14 18:37:18 2000 Delivered-To: freebsd-questions@freebsd.org Received: from sullivan.realtime.net (sullivan.realtime.net [205.238.128.209]) by hub.freebsd.org (Postfix) with ESMTP id 2CE1137B5D3 for ; Sun, 14 May 2000 18:37:16 -0700 (PDT) (envelope-from brucegb@sullivan.realtime.net) Received: (from brucegb@localhost) by sullivan.realtime.net (8.9.3/8.9.3) id UAA42751 for freebsd-questions@freebsd.org; Sun, 14 May 2000 20:37:11 -0500 (CDT) (envelope-from brucegb) From: Bruce Burden Message-Id: <200005150137.UAA42751@sullivan.realtime.net> Subject: Re: Unix Virus.. Old but Nasty In-Reply-To: from Harry Putnam at "May 14, 2000 05:59:49 pm" To: freebsd-questions@freebsd.org Date: Sun, 14 May 2000 20:37:11 -0500 (CDT) X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > 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