57.7. The useradmin_update.pl User Synchronization Script

As Section 56.2 “User Update Notification” explains, other Webmin modules can choose to be notified when a user is created, modified, or deleted in the Users and Groups module. This is normally used to keep some other user list in sync (such as the Samba password file), but can be handy for other purposes as well.

The Scheduled Cron Jobs module has a useradmin_update.pl script so that it can detect the renaming and deletion of users, and update their Cron job files, respectively. When a UNIX user is removed, his Cron jobs will normally continue to exist, even though they will no longer work. If a user is renamed, his jobs will still be listed under the old name, which will prevent them ...

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.