Re: Nologin
El Jueves, 2 de Febrero de 2006 17:12, Jon escribió:
> Jon(e)k dio:
> >>hace un dpkg --configure -a
> >>
> >>>>>Cómo puedo saber quién me lo está regenerando una y otra vez?
> >>>>>documento de texto sencillo adjunto (rmnologin)
> >>>>>#! /bin/sh
> >>>>>### BEGIN INIT INFO
> >>>>># Provides: rmnologin
> >>>>># Required-Start: $local_fs $remote_fs
> >>>>># Required-Stop:
> >>>>># Should-Start: kdm xdm gdm $syslog
> >>>>># Default-Start: 0 1 2 3 4 5 6
> >>>>># Default-Stop:
> >>>>># Short-Description: Remove /etc/nologin at boot
> >>>>># Description: This script removes the /etc/nologin file as the
> >>>>># last step in the boot process, if DELAYLOGIN=yes.
> >>>>># If DELAYLOGIN=no, /etc/nologin was not created by
> >>>>># bootmisc earlier in the boot process.
> >>>>>### END INIT INFO
> >>>>>
> >>>>>PATH=/sbin:/bin
> >>>>>[ "$DELAYLOGIN" ] || DELAYLOGIN=yes
> >>>>>. /lib/init/vars.sh
> >>>>>
> >>>>>do_start () {
> >>>>> #
> >>>>> # If login delaying is enabled then remove the flag file
> >>>>> #
> >>>>> case "$DELAYLOGIN" in
> >>>>> Y*|y*)
> >>>>> rm -f /var/lib/initscripts/nologin
> >>>>> ;;
> >>>>> esac
> >>>>>}
> >>>>>
> >>>>>case "$1" in
> >>>>>start)
> >>>>> do_start
> >>>>> ;;
> >>>>>restart|reload|force-reload)
> >>>>> echo "Error: argument '$1' not supported" >&2
> >>>>> exit 3
> >>>>> ;;
> >>>>>stop)
> >>>>> # No-op
> >>>>> ;;
> >>>>>*)
> >>>>> echo "Usage: $0 start|stop" >&2
> >>>>> exit 3
> >>>>> ;;
> >>>>>esac
> >
> > Ya está, pero no me dice nada. A ver en el próximo arranque...
> >
> > De todos modos, el script me borraría...
> >
> > rm -f /var/lib/initscripts/nologin
> >
> > ...pero no el...
> >
> > /etc/nologin
> >
> > ¿no?
>
> EFEKTIBAMENTE....
>
> He cambiado la línea
>
> rm -f /var/lib/initscripts/nologin
>
> por
>
> rm -f /etc/nologin
>
> et voilá!
>
>
> P.S.: Pero sigo sin saber quién ha sido.
¿Sospechas de algún familiar? ¿alguna exnovia? ¿amigos windoseros que
pretenden recolocarte en la senda correcta?
--
y hasta aquí puedo leer...
Reply to: