[Adduser-devel] Re: [Pkg-shadow-devel] Should userdel remove users crontabs?

Tomasz Kłoczko kloczek@zie.pg.gda.pl
Wed, 25 May 2005 12:42:19 +0200 (CEST)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--568760595-2054110425-1117017739=:3825
Content-Type: TEXT/PLAIN; charset=iso-8859-15
Content-Transfer-Encoding: QUOTED-PRINTABLE

On Wed, 25 May 2005, Christian Perrier wrote:

> > Christian look on comment in src/userdel.c::user_cancel():
>=20
> 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=20
scripts installed by crond, lpr .. and other packages.

kloczek
--=20
-----------------------------------------------------------
*Ludzie nie maj=B1 problem=F3w, tylko sobie sami je stwarzaj=B1*
-----------------------------------------------------------
Tomasz K=B3oczko, sys adm @zie.pg.gda.pl|*e-mail: kloczek@rudy.mif.pg.gda.p=
l*
--568760595-2054110425-1117017739=:3825--