[Pkg-shadow-devel] Should userdel remove users crontabs?
Christian Perrier
bubulle@debian.org
Wed, 25 May 2005 14:27:26 +0200
Quoting Tomasz Kłoczko (kloczek@zie.pg.gda.pl):
> On Wed, 25 May 2005, Christian Perrier wrote:
>
> > > Christian look on comment in src/userdel.c::user_cancel():
> >
> > Sure. Nice example. Probably a bit too hardcoded, depending on
> > various cron and print system things (especially print systems).
>
> For this better will be better hook kind of skeleton script like:
>
> for i in /usr/lib/userdel.d/*.sh ; do
> if [ -x $i ]; then
> . $i
> fi
> done
>
> and all what is neccessary on user del will done depending on partial
> scripts installed by crond, lpr .. and other packages.
The idea seems interesting. It would immediately draw, for Debian, the
question of The Right Place for this userdel.d directory (probably
/etc/userdel.d if the policy allows this.
However, again, the debate is whether this pertains to a low-level
utility or, again, to a high level one (such as deluser).
It seems to be this is converging towards a feature planned for
adduser/deluser, according to Marc Haber's recent mail about another
bug we analysed.