[Samba] Where is password expiry information stored?

Mogens Kjaer mk at crc.dk
Sat Jun 16 09:37:56 GMT 2007

Yesterday, I've moved all my samba users from a redhat 9 (i386) system
to a Centos 5 (x86_64) system. This runs samba-3.0.25-7.

The system uses NIS authentication, no shadow files.

Now all my Windows users have accounts that expire today!

Strangely, if I do a:

# pdbedit -L -v mk

I get:

Password last set:    Tue, 18 May 2004 15:04:30 CEST
Password can change:  Tue, 18 May 2004 15:04:30 CEST
Password must change: 9223372036854775807 seconds since the Epoch

I havn't calculated what 9223372036854775807 seconds since the Epoch
is in human readable format but I guess that it is in the
future :-)

Where does this number come from? There's no shadow file
on the system (The NIS server serves old SGI machines as well,
they don't use shadow files).

How do I fix this problem so that I don't have hundreds of
users calling me Monday morning? How do I make sure that users
created in the future don't have expired accounts?


Mogens Kjaer, Carlsberg A/S, Computer Department
Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
Phone: +45 33 27 53 25, Fax: +45 33 27 47 08
Email: mk at crc.dk Homepage: http://www.crc.dk

More information about the samba mailing list