56.2. User Update Notification

Since version 0.72, it has been possible to have the Users and Groups module notify other modules when a UNIX user is added, updated, or deleted. This can be useful if your module deals with additional information that is associated with users. For example, the Disk Quotas module sets default quotas when new users are created, and the Samba Windows File Sharing module keeps the Samba password file in sync with the UNIX user list.

To have your module notified when a user is added, updated, or deleted, you must create a Perl script called useradmin_update.pl in your module directory. This file must contain three functions:

useradmin_create_user(user) This function is called when a new UNIX user is created. The user ...

Get Managing Linux® Systems with Webmin™ System Administration and Module Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.