Main Page/Samba Password Policy: Difference between revisions
Appearance
Created page with "''' == Samba bad lockout attempt Password Policy == ''' Take Backup of smb.conf cp -pvr /etc/samba/smb.conf /etc/samba/smb.conf_20thsept //To list details of the account//..." |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
[[category:Curio Crafts]] | |||
[[category:SAMBA]] | |||
''' | ''' | ||
== Samba bad lockout attempt Password Policy == | == Samba bad lockout attempt Password Policy Implemented at Curiocrafts == | ||
''' | ''' | ||
Take Backup of smb.conf | Take Backup of smb.conf | ||
cp -pvr /etc/samba/smb.conf /etc/samba/smb.conf_20thsept | cp -pvr /etc/samba/smb.conf /etc/samba/smb.conf_20thsept | ||
==To list details of the account== | |||
pdbedit -v username | pdbedit -v username | ||
==To check Password Policy 'bad lockout attempt'== | |||
pdbedit -P "bad lockout attempt" | pdbedit -P "bad lockout attempt" | ||
output:- account policy value for bad lockout attempt is 0 | output:- account policy value for bad lockout attempt is 0 | ||
==set policy to maximum 3 attempts== | |||
pdbedit -P "bad lockout attempt" -C 3 | pdbedit -P "bad lockout attempt" -C 3 | ||
output:- account policy value for bad lockout attempt was 0 | output:- account policy value for bad lockout attempt was 0 | ||
| Line 28: | Line 32: | ||
==To check account lockup duration== | |||
pdbedit -P "lockout duration" | pdbedit -P "lockout duration" | ||
output:- account policy "lockout duration" description: Lockout duration in minutes (default: 30, -1 => forever) | output:- account policy "lockout duration" description: Lockout duration in minutes (default: 30, -1 => forever) | ||
| Line 36: | Line 40: | ||
==To change account lockup duration== | |||
pdbedit -P "lockout duration" -C 45 | pdbedit -P "lockout duration" -C 45 | ||
Output:- account policy "lockout duration" description: Lockout duration in minutes (default: 30, -1 => forever) | Output:- account policy "lockout duration" description: Lockout duration in minutes (default: 30, -1 => forever) | ||
| Line 45: | Line 49: | ||
==To unlock a locked account== | |||
pdbedit -r -c "[]" username | pdbedit -r -c "[]" username | ||
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