smbpasswd ?

Andrew Bartlett abartlet at pcug.org.au
Wed Jan 23 13:52:12 GMT 2002


Gerald Carter wrote:
> 
> On Tue, 22 Jan 2002, Paul Reilly wrote:
> 
> >
> > Hi,
> >
> > I'm using smbpasswd from the 2.2.2 samba and it's acting a bit odd:
> > Scenario: Running as a non-priveleged user, I run smbpasswd to change by
> > samba passwd in /usr/local/samba/private/smbpasswd
> >
> > If I run smbpasswd with no argument it correctly prompts for the
> > following:
> >
> > % smbpasswd
> > Old SMB password:
> > New SMB password:
> > Retype new SMB password:
> > Password changed for user paulr
> >
> > However if I run it with my username as an argument, it does the
> > following:
> >
> > % smbpasswd pareilly
> > Old SMB password:
> > Password changed for user paulr
> >
> > ie - it never asks for the new password, but does change my password to
> > something, as the entry in the samba private password has changed! I need
> > to be able script smbpasswd in expect, but it's not acting as I would
> > expect. Why doesn't it prompt for the new password?!
> 
> Sounds like a bug to me.  We'll look into it.

For reasons of extreme frustration (been bitten by this one...)
smbpasswd (in non-root mode) takes the command line argument as the new
password...

Andrew Bartlett

-- 
Andrew Bartlett                                 abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
Student Network Administrator, Hawker College   abartlet at hawkerc.net
http://samba.org     http://build.samba.org     http://hawkerc.net




More information about the samba mailing list