Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

We use OpenLDAP and Samba v3. Recently some Samba-defined users (no accounts on the shared linux server) started being listed in logwatch as having their passwords come up to "will expire"...I changed the names.

   password for user unicorn will expire in 7 days: 1 Time(s)
   password for user xMacAlphbet will expire in 7 days: 1 Time(s)
   password for user klbomb will expire in 4 days: 1 Time(s)

None of thee users have a linux user account. How can I fix these?

share|improve this question
    
are you using pwdPolicy schema in LDAP? –  Rahul Patil Dec 10 '13 at 10:20

1 Answer 1

First look for

pdbedit -u $username -v

This should display every property about this particular user.

pdbedit -P "maximum password age" -C -1

This then should disable the max password age for all accounts.

Taken from: http://linuxcommand.org/man_pages/pdbedit8.html

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.