[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Sending out welcome e-mail using Postfix

also sprach Michelle Konzack <linux4michelle@freenet.de> [2005.04.12.1909 +0200]:
> This should be installed by default but
> without "/usr/local/sbin/adduser.local"

and until it is, my script closes the loop.

> Maybe a wishlist-BUG to "adduser" ?

You could certainly file that.

Anyway, you need not know perl to implement this. The following
patch should be all that's needed (untested):

--- /usr/sbin/adduser 2005-03-04 23:35:49.000000000 +0100
+++ /tmp/adduser  2005-04-12 19:23:03.748737220 +0200
@@ -579,6 +579,10 @@
     &systemcall('/usr/local/sbin/adduser.local', $new_name, $new_uid,
    $new_gid, $home_dir) if (-x "/usr/local/sbin/adduser.local");
+    &systemcall('run-parts', '--report', '--exit-on-error', "-a $new_name",
+      "-a $new_uid", "-a $new_gid", "-a $home_dir", '--', '/etc/adduser.d')
+      if (-d '/etc/adduser.d');
     exit 0;

Feel free to include it if you file the bug.

You should also modify deluser appropriately. I leave that as an

Please do not send copies of list mail to me; I read the list!
 .''`.     martin f. krafft <madduck@debian.org>
: :'  :    proud Debian developer, admin, user, and author
`. `'`
  `-  Debian - when you have better things to do than fixing a system
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!
"montag, why do you burn books?"
"it's a job like any other, pay is good and there is a lot of variety."
                                                -- ray bradbury (f451)

Attachment: signature.asc
Description: Digital signature

Reply to: