delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/10/14/04:33:37

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 14 Oct 2011 10:32:52 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Where is /bin/nologin
Message-ID: <20111014083252.GB12878@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <32647652 DOT post AT talk DOT nabble DOT com> <20111013212001 DOT GB7035 AT jethro DOT local DOT lan> <32649084 DOT post AT talk DOT nabble DOT com>
MIME-Version: 1.0
In-Reply-To: <32649084.post@talk.nabble.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Oct 13 15:44, gwodus wrote:
> 
> 
> Dawud Medina wrote:
> > 
> > Does /bin/false serve that purpose?
> > 
> > -- 
> > Huella de clave primaria: AD8F BDC0 5A2C FD5F A179  60E7 F79B AB04 5299
> > EC56
> > 
> 
> Of course!!! Thanks a lot. That's what I was looking for. Thanks.

Or what about creating your own /sbin/nologin, something like this:

  $ cat > /sbin/nologin <<EOF
  #!/bin/sh
  if [ -f /etc/nologin.txt ]
  then
    cat /etc/nologin.txt
  else
    echo "This account is currently not available."
  fi
  exit 0
  EOF
  $ chmod +x /sbin/nologin


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019