Samba user password resets after restart

Status
Not open for further replies.

default6

Cadet
Joined
Aug 20, 2013
Messages
6
Hi All!
My problem is with the Samba account of one of my users "panni". The user is not able to authenticate to the Samba. When I change her smbpasswd the service is ok. The date Password last set is correct:

pdbedit -L -v
...
Unix username: panni
NT username:
Account Flags: [U ]
User SID: S-1-5-21-1567262885-555875382-3336961641-3004
Primary Group SID: S-1-5-21-1567262885-555875382-3336961641-513
Full Name: Panni
Home Directory: \\freenas\panni
HomeDir Drive:
Logon Script:
Profile Path: \\freenas\panni\profile
Domain: FREENAS
Account desc:
Workstations:
Munged dial:
Logon time: 0
Logoff time: never
Kickoff time: never
Password last set: Mon, 30 Jun 2014 22:28:33 CEST
Password can change: Mon, 30 Jun 2014 22:28:33 CEST
Password must change: never
Last bad password : 0
Bad password count : 0
Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF


After restarting the smb forgets the new password:

Unix username: panni
NT username:
Account Flags: [U ]
User SID: S-1-5-21-1567262885-555875382-3336961641-3004
Primary Group SID: S-1-5-21-1567262885-555875382-3336961641-513
Full Name: Panni
Home Directory: \\freenas\panni
HomeDir Drive:
Logon Script:
Profile Path: \\freenas\panni\profile
Domain: FREENAS
Account desc:
Workstations:
Munged dial:
Logon time: 0
Logoff time: never
Kickoff time: never
Password last set: Thu, 09 Jan 2014 18:10:36 CET
Password can change: Thu, 09 Jan 2014 18:10:36 CET
Password must change: never
Last bad password : 0
Bad password count : 0
Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

It seem like Samba would work with two different passsword database. How can I delete the old entries or fix it somehow?
Samba is 3.6.17. running on:

Build FreeNAS-9.1.1-RELEASE-x86 (a752d35)
Platform Intel(R) Atom(TM) CPU D2500 @ 1.86GHz
Memory 2014MB

Any help appreciated!
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
I think FreeNAS uses your user database for SMB passwords as well, so your reverted password after restarting makes sense because FreeNAS essentially rebuilds all your configuration from its own database (typically located at /conf/base/etc/) every restart. This is really why you should do most things from the web GUI, not from the CLI. This ensures your changes will persist even through restarts.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
What whattteva said. Do it from the WebGUI or you'll have the problems you are having. ;)
 

default6

Cadet
Joined
Aug 20, 2013
Messages
6
Thank you very much for the help guys, this way better now :) I always looked for that function by clicking on the user.
 
Status
Not open for further replies.
Top