🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sequent
Article #33

Re: DYNIX/ptx equivalent to DYNIX /etc/nologin

#33
From: Jason M Banham
Date: Thu, 30 Jul 1992 20:28
35 lines
1512 bytes
stopsdj@uhura.aston.ac.uk (David Stops) writes:
: Is there a simple way of preventing people logging on to a DYNIX/ptx system.
: In DYNIX this can be achieved by creating /etc/nologin, if this file exists
: when a user attempts to log in, login prints its contents and exits.  Is there
: an equivalent in DYNIX/ptx ?

No, there is no equivalent version of the /etc/nologin functionality in 
Dynix/PTX  (this is not a Sequent thing, more a SysV/POSIX thing if memory
serves me right).

It can be simulated but you need to "hack" /etc/profile with something like:

if [ $LOGNAME != "root" ]; then
    echo "Logins refused at this time"
    exec tput clear
fi

This is from memory so you might need to explicitly state where tput is
(that's the trouble using two o/s Dynix[bsd] and Dynix/PTX[att]).

This will probably fail though for people who just "su" [$LOGNAME doesn't get
altered!]


Cheers,

Jayce.

--

"Nudists only have one button on their suits!"

Internet: aangel@sequent.co.uk			Sequent Computer Systems
	  cs89jmb@brunel.ac.uk			UK Customer Support
						Chertsey, Surrey KT16 9HB
Technical Details
Message-ID: <Bs7y6z.15u@brunel.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!brunel!cs89jmb
References: <1992Jul23.100315.13912@aston.ac.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!brunel!cs89jmb
From: cs89jmb@brunel.ac.uk (Jason M Banham)
Newsgroups: comp.sys.sequent
Subject: Re: DYNIX/ptx equivalent to DYNIX /etc/nologin
Message-ID: <Bs7y6z.15u@brunel.ac.uk>
Date: 30 Jul 92 20:28:10 GMT
References: <1992Jul23.100315.13912@aston.ac.uk>
Organization: Brunel University, Uxbridge, UK
Lines: 35
X-Newsreader: Tin 1.1 PL3