[TriLUG] to delete root, or not too?

Alan Porter porter at trilug.org
Tue Nov 14 08:06:23 EST 2006


> Another interesting note, is that on most *BSD systems, the root 
> user's shell is csh.  This causes some pain for those people who 
> aren't familiar with it, but since all the boot scripts are written in 
> csh, and run with the root user's shell, you can't reasonably change 
> it and then reboot the system.

Any shell programmer worth his salt would explicitly specify the shell 
interpreter in the first line of all shell scripts (the first line 
should contain #!/bin/myshell).  Otherwise, it depends on reading the 
running user's preferred shell (in most cases, from the current value of 
the $SHELL variable).

If these shell scripts were written properly, then it would not matter 
which login shell was in /etc/passwd under the entry for 'root'.  And it 
would not matter which shell the user happened to be running when he 
issued commands.

Anything else is just plain sloppiness.

Alan







More information about the TriLUG mailing list