Ludwig Ortmann wrote: > As far as I can tell (I looked around the code a little) adduser does > not provide the mentioned possibility to run custom scripts. > If this is indeed the case the passage should be removed from the > manpage. > Otherwise the manpage should provide documentation where to put / how to > use such scripts.
Search in adduser(8) for "/usr/local/sbin/adduser.local". But it does seem to me that this useful feature should probably also be mentioned under FILES. Suggested patch attached; my nroff seems okay but may need tweaking. -- JBR Not the maintainer or even a DD
diff -ru adduser-3.112+nmu2.pristine//doc/adduser.8 adduser-3.112+nmu2/doc/adduser.8 --- adduser-3.112+nmu2.pristine//doc/adduser.8 2009-09-20 21:31:46.000000000 +0100 +++ adduser-3.112+nmu2/doc/adduser.8 2011-02-03 13:30:49.797258869 +0000 @@ -291,6 +291,10 @@ .TP /etc/adduser.conf Default configuration file for adduser and addgroup +.TP +/usr/local/sbin/adduser.local +Optional custom add-ons. + .SH "SEE ALSO" adduser.conf(5), deluser(8), useradd(8), groupadd(8), usermod(8), Debian Policy 9.2.2. diff -ru adduser-3.112+nmu2.pristine//doc/deluser.8 adduser-3.112+nmu2/doc/deluser.8 --- adduser-3.112+nmu2.pristine//doc/deluser.8 2009-09-20 21:31:46.000000000 +0100 +++ adduser-3.112+nmu2/doc/deluser.8 2011-02-03 13:29:29.028926247 +0000 @@ -172,7 +172,13 @@ For removing the root account the parameter "--force" is required. No action was performed. .SH FILES +.TP /etc/deluser.conf +Default configuration file for deluser and delgroup +.TP +/usr/local/sbin/deluser.local +Optional custom add-ons. + .SH "SEE ALSO" deluser.conf(5), adduser(8), userdel(8), groupdel(8)

