From owner-freebsd-questions Fri Jun 18 5:15:53 1999 Delivered-To: freebsd-questions@freebsd.org Received: from titan.metropolitan.at (mail.metropolitan.at [195.212.98.131]) by hub.freebsd.org (Postfix) with ESMTP id 33B9015227 for ; Fri, 18 Jun 1999 05:15:44 -0700 (PDT) (envelope-from mladavac@metropolitan.at) Received: by TITAN with Internet Mail Service (5.0.1458.49) id ; Fri, 18 Jun 1999 14:18:42 +0200 Message-ID: <55586E7391ACD211B9730000C1100276179687@r-lmh-wi-100.corpnet.at> From: Ladavac Marino To: 'Juergen Leising' , freebsd-questions@FreeBSD.ORG Subject: RE: bash Date: Fri, 18 Jun 1999 14:13:04 +0200 X-Priority: 3 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.0.1458.49) Content-Type: text/plain Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > -----Original Message----- > From: Juergen Leising [SMTP:a0037@stud.uni-bayreuth.de] > Sent: Friday, June 18, 1999 2:06 PM > To: freebsd-questions@FreeBSD.ORG > Subject: Re: bash > > On Fri, Jun 18, 1999 at 05:19:47PM +1000, Dean Hamstead wrote: > > ive compiled bash and installed it > > when i run bash after ive logged in it works like a dream > > > > but when i set it as by prompt in /etc/passwd is just seems to > ignore the > > entry.... is there a file or something i have to register it as a > valid > > shell?? > > > > This is really strange, but a workaround is > > chsh > > Editing of /etc/shells - as proposed in this thread - didn't help in > my > case: don't know why not. [ML] Because nothing uses /etc/passwd in FreeBSD. /etc/master.passwd and passwd.db are used instead. vipw, chsh and friends update the database. > But I must say, I would prefer a working /etc/passwd, because starting > a shell is not the only purpose of using the last entry in > /etc/passwd: > You can use it in order to start different programs, daemons like > pppd, > for example, or a shell script writing to the screen "Your account > has been removed...", which may in some cases be a better solution > and a more secure way than just removing the whole entry. This works > at least under irix, sunos and linux, but not under FreeBSD. [ML] This works under FreeBSD as well, it just has to be implemented by the admin correctly (i.e. via vipw). This is really a FAQ and Handbook entry (both make for an interesting reading). I'm pretty certain that master.passwd is also mentioned in the manpages. /Marino > Bye, bye, Juergen. > > > -- > **************************************************************** > * Juergen Leising; email: juergen.leising@stud.uni-bayreuth.de * > * http://www.stud.uni-bayreuth.de/~a0037/ * > **************************************************************** > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message