*BSD News Article 59077


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!gatech!newsfeed.internetmci.com!howland.reston.ans.net!blackbush.xlink.net!rz.uni-karlsruhe.de!news.uni-stuttgart.de!schweikh
From: schweikh@itosun.ito.uni-stuttgart.de (Jens Schweikhardt)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: New User Admin
Date: 9 Jan 1996 11:59:20 GMT
Organization: Comp.Center (RUS), U of Stuttgart, FRG
Lines: 30
Message-ID: <4ctlao$15iq@info4.rus.uni-stuttgart.de>
References: <4caoal$bpa@news2.realtime.net> <4cth1n$cf6@sidhe.hsc-sec.fr>
NNTP-Posting-Host: itosun.ito.uni-stuttgart.de

In article <4cth1n$cf6@sidhe.hsc-sec.fr>,
Ollivier Robert <roberto@hsc.fr.net> wrote:
>In article <4caoal$bpa@news2.realtime.net>, Dave Brown <dhbrown@bga.com> wrote:
>> compiled it.  Okay, so now, I want to make bash my login shell.  I change 
>> that in field 6 of the /etc/passwd file and guess what... c-shell is still 
>> the login shell... huh?
>
>If you  read passwd(5), you'll  see  that /etc/passwd  is obsolete and here
>just for old programs. It is automatically generated from master.passwd.
> 
>You need to use either vipw(8) or chsh(8) to change the user's shell.

Another caveat: If
 - you are root and
 - you make bash your login shell and
 - bash is using the shared libraries (use ldd `which bash` to find out)

then be sure to have the shared libraries on the root file system
(they are not if you made /usr a separate partition). You will
otherwise have some problems when during boot up 
not all file systems can be mounted.
I once ran into this, when I substituted /bin/sh with bash
[Init wanted to fork a /bin/sh to process /etc/rc, which
required shared libs, which we're on /usr, which was only
mounted _after_ /etc/rc had been processed.
Chicken and egg. Kick me, beat me...]

Bye, Jens
-- 
SIGSIG -- signature too long (core dumped)