Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!rill.news.pipex.net!pipex!hole.news.pipex.net!pipex!idiscover.co.uk!news.come.net.uk!ricky From: ricky@come.net.uk (Ricky Chan) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Changing User's shell in FreebSD Date: Mon, 28 Apr 1997 17:02:50 +0100 Organization: ComeNet Technology Ltd Lines: 27 Message-ID: <ricky-ya02408000R2804971702500001@news.come.net.uk> References: <3352E14E.41C67EA6@cyberusa.com> NNTP-Posting-Host: intra4.come.net.uk Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: Yet Another NewsWatcher 2.4.0 Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:39886 In article <3352E14E.41C67EA6@cyberusa.com>, "Jon E. Kump" <jkump@cyberusa.com> wrote: > I need help changing my user's shells on my FreeBSD 2.2 machine. When I > edit the passwd file with the new shell and logoff and back on I'm still > using the old shell. The new one does not take effect. But if I delete > the user and the readd the user with the new shell everything is just > fine. Every other version of U*IX that I have used all I had to do was > change the passwd file. chsh will do it so will vipw but if you inist on editing the password file edit /etc/master.passwd not /etc/passwd then run: pwd_mkdb /etc/master.passwd (this is infact the equilivant of running vipw, but just editing then restarting it. If done manually it is a good idea to do it using vipw, but doing it by scripts use the edit then pwd_mkdb method). ps. I wonder why ppl don't like ppl using pwd_mkdb as not much pplo mention it whenever these questions are asked. I find it absolutely essential in admin the users on my systems. -- Ricky Chan: email: ricky@come.net.uk web: http://www.come.net.uk/ricky