[Samba] Unlocking Accounts

Adam Tauno Williams adam at morrison-ind.com
Thu Apr 22 19:14:05 GMT 2004


> |>pdbedit -c='[]' <user> will clear all flags
> | Removing the 'U' flag is probably a bad idea (breaks some user manager
> | function at least), so I would suggest
> | pdbedit -c='[U]'
> The U flag is set by default.  I tested it before I sent the mail.

I get -
[root at littleboy root]# pdbedit -c='[U]' --user=adam
Can only set [NDHLX] flags

Setting to no flags seems to strip of everything but "U" -
[root at littleboy root]# pdbedit -c='[]' --user=adam
Unix username:        adam
NT username:          adam
Account Flags:        [U          ]
User SID:             S-1-5-21-2037442776-3290224752-88127236-1874
Primary Group SID:    S-1-5-21-2037442776-3290224752-88127236-1461
Full Name:            Adam Williams
Home Directory:       \\sardine\homedir
HomeDir Drive:        F
Logon Script:         cis.bat
Profile Path:         \\BARBEL\PROFILES\adam
Domain:               BACKBONE
Account desc:
Workstations:
Munged dial:
Logon time:           0
Logoff time:          Mon, 18 Jan 2038 22:14:07 GMT
Kickoff time:         Mon, 18 Jan 2038 22:14:07 GMT
Password last set:    Thu, 25 Mar 2004 22:06:54 GMT
Password can change:  Thu, 25 Mar 2004 22:06:54 GMT
Password must change: Mon, 18 Jan 2038 22:14:07 GMT
Last bad password   : 0
Bad password count  : 0


Setting to lock the account, leaves "U" intact -
[root at littleboy root]# pdbedit -c='[L]' --user=adam
Unix username:        adam
NT username:          adam
Account Flags:        [UL         ]
User SID:             S-1-5-21-2037442776-3290224752-88127236-1874
Primary Group SID:    S-1-5-21-2037442776-3290224752-88127236-1461
Full Name:            Adam Williams
Home Directory:       \\sardine\homedir
HomeDir Drive:        F
Logon Script:         cis.bat
Profile Path:         \\BARBEL\PROFILES\adam
Domain:               BACKBONE
Account desc:
Workstations:
Munged dial:
Logon time:           0
Logoff time:          Mon, 18 Jan 2038 22:14:07 GMT
Kickoff time:         Mon, 18 Jan 2038 22:14:07 GMT
Password last set:    Thu, 25 Mar 2004 22:06:54 GMT
Password can change:  Thu, 25 Mar 2004 22:06:54 GMT
Password must change: Mon, 18 Jan 2038 22:14:07 GMT
Last bad password   : 0
Bad password count  : 0



More information about the samba mailing list