Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.mel.connect.com.au!munnari.OZ.AU!spool.mu.edu!usenet.eel.ufl.edu!bofh.dot!news.mathworks.com!solaris.cc.vt.edu!jmurray From: jmurray@vt.edu (John Murray) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Problem with CHPASS? Date: 23 May 1996 17:05:23 GMT Organization: ACM Student Machine Lines: 31 Message-ID: <4o25sj$hlj@solaris.cc.vt.edu> References: <dhawkDr57Ko.LJ5@netcom.com> <319b67b4.5860692@news.aei.ca> <31A12443.4A86@tassie.net.au> NNTP-Posting-Host: cray-ymp.acm.stuorg.vt.edu NNTP-Posting-User: news Originator: jmurray@cray-ymp.acm.stuorg.vt.edu [[CCed to orig author]] In article <31A12443.4A86@tassie.net.au>, Brook Schofield <Brook@tassie.net.au> wrote: >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. Script started on Thu May 23 13:00:21 1996 cray-ymp$ echo $1$thotuh$htnhut cray-ymp$ echo '$1$thotuh$htnhut' $1$thotuh$htnhut cray-ymp$ exit Script done on Thu May 23 13:00:41 1996 -- John Murray -={+}=- <jmurray@vt.edu> The Unoffical Pritchard Web Site - http://csugrad.cs.vt.edu/~murray/pritchard Powered By FreeBSD http://www.freebsd.org "I don't know whether I'd rather be having a bottle of vinegar" -TMBG