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.mel.connect.com.au!news.mel.aone.net.au!merlin.tassie.net.au!ida.tassie.net.au!brook From: Brook Schofield <brook@ida.tassie.net.au> Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Problem with CHPASS? Date: Fri, 24 May 1996 03:16:35 +1000 Organization: Tasmania's Access Server Pty Ltd Lines: 28 Message-ID: <Pine.BSF.3.91.960524031208.20353A-100000@ida.tassie.net.au> References: <dhawkDr57Ko.LJ5@netcom.com> <319b67b4.5860692@news.aei.ca> <31A12443.4A86@tassie.net.au> <199605231706.NAA17805@cray-ymp.acm.stuorg.vt.edu> NNTP-Posting-Host: ida.tassie.net.au Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: <199605231706.NAA17805@cray-ymp.acm.stuorg.vt.edu> > >I am running a FreeBSD 2.1 system and have been having problem with > >using "chpass" with the "-p" option to change a users password. > > chpass -p $1$thotuh$htnhut brook > >but the password isn't being changed!!! > > What I think is happening is that the shell is interpreting the $ chars > and messing up the encrypted password entry see example below (echo used > to see the command line parsing). You need to surround the password > entry in single qoutes. I originally tried by escaping the $ signs so that the command read: chpass -p \$1\%thoutuh\$htnhut but there was still no getting it to work. The password listed BTW is not a valid password... I actually copied an encrypted password from /etc/master.password to try and change my account to that password. Thanks anyway John... If anyone else has an idea on how to fix this problem please inform me! ;-) ____ / |* \ Brook Schofield / |/ \ / |*** \ Tasmania's Access Server | ***||/ | Ph +61 03-343536 Fax +61 03-343537 \ \||/ / \ \| / PO Box 2126 LAUNCESTON TAS 7250 Australia \__|_/ E-Mail: Brook@tassie.net.au