*BSD News Article 55826


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!news.kei.com!newsfeed.internetmci.com!EU.net!Germany.EU.net!zib-berlin.de!news.tu-chemnitz.de!irz401!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: nologin
Date: 30 Nov 1995 21:47:36 GMT
Organization: Private BSD site, Dresden
Lines: 18
Message-ID: <49l8po$k3p@uriah.heep.sax.de>
References: <49f2tb$60j@news.simplex.nl>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.3

rob@Simplex.simplex.nl (Rob Simons) writes:

> I was wondering why the /sbin/nologin thing is a shell script .. 
> Can't someone (who's fast enough, which is unlikely) interrupt
> the script before the 'exit' statement ?

This would exit his login shell -- and wipe out the user's session.

> Also, will the .profile (if it exists) be executed even when 
> the user gets no entry ?

No, since the user's login shell ain't /bin/sh.
-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)