[Samba] Setting password expiration policy

Mike Howard mike at dewberryfields.co.uk
Tue Jun 18 06:07:25 MDT 2013


On 18/06/2013 12:07, Thomas Harold wrote:
> On 5/13/2013 11:23 AM, Gerry Reno wrote:
>> Can I use samba-tool to globally set passwords to never expire like 
>> this:
>>
>>      /usr/local/samba/bin/samba-tool domain passwordsettings set 
>> --max-pwd-age=0
>>
>>
>> Or  do I have to set max age to some positive value and set 
>> expiration in ADUC when creating each user as "Password
>> never expires"?
>>
>>
>
> My assumption would be that since the allowed range is only 0-999 for 
> that argument that a value of zero would be "don't expire". But I'm 
> also curious as the Samba4 wiki doesn't have much to say on the subject.
>
>
A value of zero does indeed cause a password to never expire. You can 
use ADUC from a windows PC to confirm.

-- 



More information about the samba mailing list