Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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


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.