[Samba] users can't set smbpasswd, root can

John H Terpstra jht at samba.org
Mon Jan 6 19:55:01 GMT 2003


On Mon, 6 Jan 2003, Dan Kirkpatrick wrote:

> Perhaps I should downgrade to 2.2.7 (instead of 2.2.7a) to get users able
> to set their own passwords?  Or perhaps there's an easier fix of changing
> the smbpasswd binary or something.

Dan,

Please give us a bit of breathing time, we are working on this. We'll get
back to you with a solution soon.

- John T.

>
> It won't let user change/set password from a blank OR a "NO PASSWORD"
> It will only allow user to make change if they already have a password set.
>
> Thanks,
> Dan
>
> At 12:45 PM 1/6/2003, you wrote:
> >On Mon, 6 Jan 2003, Herb Lewis wrote:
> >
> > > The entry you are showing is NOT for no password but for a disabled
> > > password.
> > >
> > > It should look like the following if there is no password
> > >
> > > test:207:NO PASSWORDXXXXXXXXXXXXXXXXXXXXX:NO
> > > PASSWORDXXXXXXXXXXXXXXXXXXXXX:
> >
> >True, but the complaint appears valid as it is true a user can not in
> >2.2.7a change their own password. Try it, you will see. I just emailed JRA
> >with this exact problem.
> >
> >My account has a valid password. Here is the sequence of events:
> >
> >jht at frodo:~> smbpasswd jht
> >Old SMB password:
> >machine 127.0.0.1 rejected the password change: Error was : RAP86: The
> >specified password is invalid.
> >Failed to change password for jht
> >
> >jht at frodo:~> smbpasswd -r frodo jht
> >Old SMB password:
> >machine frodo rejected the password change: Error was : RAP86: The
> >specified password is invalid.
> >Failed to change password for jht
> >
> >The password change works fine if I do it as root.
> >
> >- John T.
> >
> > >
> > >
> > >
> > > Dan Kirkpatrick wrote:
> > > >
> > > > I just created a new smbpasswd file, all users with unset passwords.
> > > > Problem is, users can't set their passwords, only I can as root.
> > > > Password is not set / blank, but they still get:
> > > >
> > > > >test> smbpasswd
> > > > >Old SMB password: <enter>
> > > > >New SMB password: Samba
> > > > >Retype new SMB password: Samba
> > > > >machine 127.0.0.1 rejected the password change: Error was : RAP86: The
> > > > >specified password is invalid.
> > > > >Failed to change password for cas
> > > > >test>
> > > >
> > > > entry for "cas" in smbpasswd is:
> > > >
> > test:207:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U
> > > > ]:LCT-00000000:test user
> > > >
> > > > smb.conf has:
> > > > encrypt passwords = yes
> > > > smb passwd file = /etc/samba/smbpasswd
> > > >
> > > > Works fine when changed as root, so everything else seems to be set
> > ok....
> > > >
> > > > ideas?
> > > >
> > > > Thanks
> > > >
> > > > PS... any way to make the smbpasswd file using everyones unix password
> > > > that's already set?
> > > >
> > > > =======================================================
> > > > Dan Kirkpatrick                   dkirk at physics.syr.edu
> > > > Computer Systems Manager
> > > > Department of Physics
> > > > Syracuse University, Syracuse, NY
> > > > http://www.physics.syr.edu/help/    Fax:(315) 443-9103
> > > > =======================================================
> > > >
> > > > --
> > > > To unsubscribe from this list go to the following URL and read the
> > > > instructions:  http://lists.samba.org/mailman/listinfo/samba
> > >
> > >
> >
> >--
> >John H Terpstra
> >Email: jht at samba.org
>
> =======================================================
> Dan Kirkpatrick                   dkirk at physics.syr.edu
> Computer Systems Manager
> Department of Physics
> Syracuse University, Syracuse, NY
> http://www.physics.syr.edu/help/    Fax:(315) 443-9103
> =======================================================
>

-- 
John H Terpstra
Email: jht at samba.org



More information about the samba mailing list