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

Tomasz Kłoczko kloczek@zie.pg.gda.pl
Sun, 29 May 2005 18:25:12 +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-1280850238-1117383912=:3825
Content-Type: TEXT/PLAIN; charset=utf-8
Content-Transfer-Encoding: QUOTED-PRINTABLE

On Sat, 28 May 2005, Alexander Gattin wrote:

> Hi!
>=20
> On Wed, May 25, 2005 at 06:42:26PM +0200, Tomasz K=C5=82oczko wrote:
> > > > For this better will be better hook kind of skeleton script like:
> > > >=20
> > > > for i in /usr/lib/userdel.d/*.sh ; do
> > > >         if [ -x $i ]; then
> > > >                 . $i
> > > >         fi
> > > > done
> > > >=20
> > > > and all what is neccessary on user del will done depending on parti=
al=20
> > > > scripts installed by crond, lpr .. and other packages.
> > >=20
> > > The idea seems interesting. It would immediately draw, for Debian, th=
e
> > > question of The Right Place for this userdel.d directory (probably
> > > /etc/userdel.d if the policy allows this.
> >=20
> > /etc generaly is for configuration files.
> > Subdirectories in /usr/lib are for modules and program extensions (also=
=20
> > for scripts) and olso for ohter resources arch dependent (this is why=
=20
> > glibconfig.h header file is installed in /usr/lib subdirectory .. not i=
n=20
> > /usr/include) so as far as I know FHS, LSB specyfications IMO=20
> > /usr/lib/userdel.d can be Right Place (tm) for this kind resources :)
>=20
> What about /etc/cron.{hourly|daily|weekly|monthly} and
> /etc/init.d ? ;)
> They are for _scripts_ too, _not plain config_ files...
>=20
> Also:
> /etc/apm/resume.d
> /etc/apm/event.d
> /etc/apm/other.d
> /etc/apm/scripts.d
> /etc/apm/suspend.d
> /etc/ppp/ipv6-down.d
> /etc/ppp/ipv6-up.d
> /etc/ppp/ip-down.d
> /etc/ppp/ip-up.d
> /etc/cipe/ip-down.d
> /etc/cipe/ip-up.d
> /etc/emacs/site-start.d (?)
> /etc/jed-init.d
> /etc/dhcp3/dhclient-enter-hooks.d
> /etc/network/if-post-down.d
> /etc/network/if-up.d
> /etc/network/if-down.d
> /etc/network/if-pre-up.d
> /etc/network/ip-down.d
> /etc/network/ip-up.d
> /etc/bash_completion.d

Look at FHS specyfication. Place scripts in /etc hierarhy is allowed if it
must be avalaible during system initialization and all above seems they=20
are this kind of resources.
This is not userdel case.
Now you see diffrence ? :)

[..]
> So you propose to differentiate distribution-installed
> scripts (i.e. scripts installed by cron, lpr, at and
> other packages) by extension?

Yes becase seems this case looks like common/idependent from diffrent=20
kind distribution "stilistics" :)

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-1280850238-1117383912=:3825--