This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Where is /bin/nologin


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]