[Samba] UPDATE: syncing unix passwords

Andrew Bartlett abartlet at samba.org
Thu Jun 20 00:16:04 GMT 2002

Christian Barth wrote:
> > Christian Barth wrote:
> > >
> > > > I have some new information concerning this issue. I am now able
> > > > to change both the samba and unix passwords as anyone but root.
> > >
> > > This is by design.
> >
> > This is news to me...
> >
> > There isn't any difference in the code paths for root, so I can't say
> > 'this is by design'.  I think however that your passwd program might
> > be repsonding differently for root, and this could certainly cause
> > that.
> Andrew,
> I'm sorry to give this wrong information to the list. I thought so
> because it's the behavior I get in the last years in the same way as
> Paul. But:

I just try to keep the 'samba folklore' to a minimum.  

> >From man smbpasswd (8):
> When run by root, smbpasswd accesses the local smbpasswd file
> directly, thus enabling changes to be made even if smbd is not
> running. (and not in the client server mode it does a normal user)
> And this may be the difference when using smbpasswd on the unix promt
> to change root's smb and unix password. Which isn't working for me
> and I think it's good this way.

Thats just for the 'smbpasswd' utility.  It does magic 'am I root'
checks, but you can override these with -L to make it attempt local
passdb operations or -r REMOTE_MACHINE to force a 'user' 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