Re: Where is /bin/nologin

2011-10-17 Thread Andrey Repin
Greetings, Corinna Vinschen! >> I would advice against giving any clues about account status, for security >> reasons. > It's what Linux' /sbin/nologin' prints, too. Actually it's the whole > idea of /sbin/nologin' per the man page: Right you are. However, I haven't seen /bin/nologin used on an

Re: Where is /bin/nologin

2011-10-15 Thread Corinna Vinschen
On Oct 15 01:24, gwodus wrote: > Nice script! Would be cool if it would be part of cygwin. Btw. was the > /etc/nologin.txt your addition? I think the original nologin doesn't even do > that. At least not on Debian, where I just checked. It does on Fedora. Corinna -- Corinna Vinschen

Re: Where is /bin/nologin

2011-10-15 Thread gwodus
fact I checked on my Linux box. I see that most "no-shell" users have /bin/false in /etc/passwd (like ftp or mysql). But others have nologin (e.g. user sshd on my machine). Thanks, gwodus. -- View this message in context: http://old.nabble.com/Where-is--bin-nologin-tp32647652

Re: Where is /bin/nologin

2011-10-14 Thread Corinna Vinschen
On Oct 14 14:04, Andrey Repin wrote: > Greetings, Corinna Vinschen! > > > Or what about creating your own /sbin/nologin, something like this: > > > $ cat > /sbin/nologin < > #!/bin/sh > > if [ -f /etc/nologin.txt ] > > then > > cat /etc/nologin.txt > > else > > echo "This accoun

Re: Where is /bin/nologin

2011-10-14 Thread Andrey Repin
Greetings, Corinna Vinschen! > Or what about creating your own /sbin/nologin, something like this: > $ cat > /sbin/nologin < #!/bin/sh > if [ -f /etc/nologin.txt ] > then > cat /etc/nologin.txt > else > echo "This account is currently not available." > fi > exit 0 > EOF >

Re: Where is /bin/nologin

2011-10-14 Thread Corinna Vinschen
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 creati

Re: Where is /bin/nologin

2011-10-13 Thread gwodus
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. -- View this message in context: http://ol

Re: Where is /bin/nologin

2011-10-13 Thread David Sastre
On Thu, Oct 13, 2011 at 11:37:19AM -0700, gwodus wrote: > > I am missing /bin/nologin. > > I need to disable shell access for a user. But it still needs to be able to > accept ssh connects for tunnel only for that user (ssh -N ...). > > On Linux I would set the login shell in /etc/passed to /

Where is /bin/nologin

2011-10-13 Thread gwodus
rtain cygwin package I need to install? Thanks in advance, gwodus. -- View this message in context: http://old.nabble.com/Where-is--bin-nologin-tp32647652p32647652.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/problems.htm