[Samba] How to get password expiration?

Rowland Penny rpenny at samba.org
Fri Feb 3 19:53:31 UTC 2017


On Fri, 3 Feb 2017 12:39:20 -0700
Jeff Sadowski via samba <samba at lists.samba.org> wrote:

> On my ubuntu machines I added
> 
> auth    required        pam_exec.so /scripts/password_expire.sh
> 
> to the beginning of /etc/pam.d/common-auth
> 

That's where I was going wrong, I added it to common-session, but this
being Unix, I have found another way ;-)

On Mate (so should work on gnome as well), create a .desktop file
in /etc/xdg/autostart to run a script in /usr/local/bin and you get the
attached screenshot.

Rowland


More information about the samba mailing list