[Samba] Calling a script when new users are added or a user changes his password

Jeremy Allison jra at samba.org
Thu Apr 14 17:42:17 UTC 2016

On Thu, Apr 14, 2016 at 06:36:00AM +0000, Luca Bertoncello wrote:
> Hi list!
> Is it possible to call a script when a new user is added and another script
> (or the same with other parameters) when a user changes his password?

man smb.conf

       add user script (G)

           This is the full pathname to a script that will be run AS ROOT by
           smbd(8) under special circumstances described below.

       check password script (G)

           The name of a program that can be used to check password
           complexity. The password is sent to the program's standard input.

More information about the samba mailing list