Re: Nologin
- To: Angel Claudio Alvarez <angel@angel-alvarez.com.ar>
- Cc: debian-user-spanish@lists.debian.org
- Subject: Re: Nologin
- From: Jon <jontek@euskalherria.info>
- Date: Wed, 01 Feb 2006 09:10:51 +0100
- Message-id: <[🔎] 43E06D0B.6050702@euskalherria.info>
- In-reply-to: <1138745986.22627.1.camel@localhost.localdomain>
- References: <43DA45D6.8060508@euskalherria.info> <200601271023.20440.ftn@netgroup.cl> <1138400612.26962.2.camel@localhost.localdomain> <e9cc1e330601281113o7f42039ah@mail.gmail.com> <0ITT00EFBL1G7J00@ektmail6mta1.euskaltel.es> <43DBDD4E.9030901@gmail.com> <43DBE5AE.3030408@euskalherria.info> <43DBE698.2000202@gmail.com> <43DBE7D0.8080801@euskalherria.info> <1138564210.5782.2.camel@localhost.localdomain> <43DD232A.3020907@euskalherria.info> <1138659862.14749.3.camel@localhost.localdomain> <43DF14AF.8090506@euskalherria.info> <1138745986.22627.1.camel@localhost.localdomain>
>
> 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?
Reply to: