Subject: Re: 530 User root may not use FTP (invalid shell). ? :(
To: Dr. Bill Studenmund <wrstuden@loki.stanford.edu>
From: David Brownlee <abs@anim.dreamworks.com>
List: port-mac68k
Date: 01/05/1999 22:26:53
On Tue, 5 Jan 1999, Dr. Bill Studenmund wrote:

> One further note, be careful about the shell you give root. NetBSD uses
> shared libraries (on most ports, including mac68k). Programs compiled w/
> shared libraries don't contain the full program - they rely on libraries
> external to the program (libraries which these programs can _share_ with
> all other programs, saving disk space).
> 
> If something happens to these shared libraries, all the programs relying
> on them loose. If root's shell is one of these, then root looses (it's
> kinda hard to run the shell to fix the library if the shell is dead).
> 
> I'd suggest reverting root's shell to /bin/csh, and making another user
> (say "croot") with UID 0. With vipw, just copy the "root" line, chance the
> name, and change the shell.
> 
	Or (just to give another option :) compile up the shell again with
	-static in the CFLAGS, then copy it into /bin - I used a static
	/bin/tcsh as root's shell :)

		David/absolute

                  -=- Why _do_ we crucify ourselves?  -=-