[Samba] pdbedit - can't set password expiry, etc?
Justin
samba_list at midaliasteel.com
Fri Jul 29 06:28:39 GMT 2005
Hi All
Have recently moved from a machine running 2.2 to a new machine running
3.0.10-1. I've just converted the smbpasswd database to tdbsam as I
understand password ageing etc does not work with smbpasswd. I've set
the line 'passdb backend = tdbsam' in the smb.conf, restarted the daemon
and now I'm trying to force a user account to have to change his
password the next time he logs in. I'm using the command
#pdbedit -u justinh --pwd-must-change-time 0
and also tried
#pdbedit --pwd-must-change-time=0 justinh
but neither seems to modify the user;
# pdbedit -Lv justinh
Unix username: justinh
NT username:
Account Flags: [U ]
User SID: S-1-5-21-179224907-3521905181-1287225574-2032
Primary Group SID: S-1-5-21-179224907-3521905181-1287225574-2201
Full Name: Justin.Hyde
Home Directory: \\agnes\justinh
HomeDir Drive:
Logon Script: "logon.bat"
Profile Path: \\agnes\justinh\profile
Domain: MIDALIA
Account desc:
Workstations:
Munged dial:
Logon time: 0
Logoff time: Sat, 14 Dec 1901 04:45:51 GMT
Kickoff time: Sat, 14 Dec 1901 04:45:51 GMT
Password last set: Fri, 29 Jul 2005 13:12:12 GMT
Password can change: Fri, 29 Jul 2005 13:12:12 GMT
Password must change: Sat, 14 Dec 1901 04:45:51 GMT
Last bad password : 0
Bad password count : 0
Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
Can anyone suggest where I've gone wrong here?
TIA
Justin
More information about the samba
mailing list