Re: More advanced home directory creation in Debian?
Petter Reinholdtsen writes ("More advanced home directory creation in Debian?"):
> It would be nice if all the tools copying /etc/skel/ also had a common
> location for their "post-creating" scripts, making sure users created
> by for example adduser, lwat, libpam-mkhomedir and libpam-mklocaluser
> get the same content.
If the file /usr/local/sbin/adduser.local exists, it will be executed
after the user account has been set up in order to do any local setup.
The arguments passed to adduser.local are:
username uid gid home-directory
The environment variable VERBOSE is set according to the following
0 if --quiet is specified
1 if neither --quiet nor --debug is specified
2 if --debug is specified
(The same applies to the variable DEBUG, but DEBUG is deprecated
and will be removed in a later version of adduser.)
So while it doesn't use run-parts, it's halfway there already.
I use adduser.local on chiark.