Main Page/Samba Password Policy: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
[[category:Curio Crafts]] | |||
[[category:SAMBA]] | |||
''' | ''' | ||
== Samba bad lockout attempt Password Policy Implemented at Curiocrafts == | == Samba bad lockout attempt Password Policy Implemented at Curiocrafts == | ||
Latest revision as of 08:01, 24 October 2013
Samba bad lockout attempt Password Policy Implemented at Curiocrafts[edit]
Take Backup of smb.conf
cp -pvr /etc/samba/smb.conf /etc/samba/smb.conf_20thsept
To list details of the account[edit]
pdbedit -v username
To check Password Policy 'bad lockout attempt'[edit]
pdbedit -P "bad lockout attempt"
output:- account policy value for bad lockout attempt is 0
set policy to maximum 3 attempts[edit]
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[edit]
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[edit]
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[edit]
pdbedit -r -c "[]" username