Main Page/Samba Password Policy
Appearance
Samba bad lockout attempt Password Policy Implemented at Curiocrafts
Take Backup of smb.conf
cp -pvr /etc/samba/smb.conf /etc/samba/smb.conf_20thsept
To list details of the account
pdbedit -v username
To check Password Policy 'bad lockout attempt'
pdbedit -P "bad lockout attempt"
output:- account policy value for bad lockout attempt is 0
set policy to maximum 3 attempts
pdbedit -P "bad lockout attempt" -C 3
output:- account policy value for bad lockout attempt was 0 account policy value for bad lockout attempt is now 3
To check account lockup duration
pdbedit -P "lockout duration"
output:- account policy "lockout duration" description: Lockout duration in minutes (default: 30, -1 => forever) account policy "lockout duration" value is: 30
To change account lockup duration
pdbedit -P "lockout duration" -C 45
Output:- account policy "lockout duration" description: Lockout duration in minutes (default: 30, -1 => forever) account policy "lockout duration" value was: 30 account policy "lockout duration" value is now: 45
To unlock a locked account
pdbedit -r -c "[]" username