Sorry for the lateness of this response.
This summary contains two parts: part one for /etc/nologin and part two
for FAQ's.
Original Posting:
> Does anyone know of a utility similar to using /etc/nologin on
> SunOS 4.x that can be used on Solaris 2.x ?
>
> The /etc/nologin scheme does not seem to be supported on Solaris.
> I have hacked /etc/profile to look for this file upon logging into
> the system. I would prefer to use an official supported scheme, but
> I do not know of any. The man pages and FAQ that I have do not
> have any information on this for Solaris.
>
> I will summarize.
> Thanks in advance.
>
> BTW - where can I get the latest and greatest FAQ's from? My current
> copy that someone gave me is way out of date.
>
Replies were received from the following people:
Ron Hall <thorn@cc.mcgill.ca>
ddoherty@chipcom.com (Dave Doherty)
Nino Margetic <nino@well.ox.ac.uk>
anderson@neon.mitre.org (Mark S. Anderson)
Also were included two "me too, send info"
PART ONE: /etc/nologin
The replies stated that this was not supported. One reply stated the
following:
> Does anyone know of a utility similar to using /etc/nologin on
> SunOS 4.x that can be used on Solaris 2.x ?
*** Why would you want one - you can lock/expire an account from within
the admintool. Nevertheless, if you really want to do it, I belive that
you can use anything that ends in "sh", and that will work....
Since no new suggestions were sent, I will stick with what I already had
in place. I inserted the following in /etc/profile after LOGNAME has
been
exported.
if ([ $LOGNAME != "root" ] && [ ! "`grep $LOGNAME /etc/nologinid`" ]) \
&& [ -f /etc/nologin ]; then
echo;echo;echo
cat /etc/nologin
echo;echo
sleep 5
kill -9 $$
fi
This allows root and any id in the file /etc/nologinid to login to the
system while the file /etc/nologin exists. Otherwise kill the existing
shell.
PART TWO: FAQ's
The Solaris FAQ can be obtained through anonymous ftp from
ftp.fwi.uva.nl:/pub/solaris/solaris2.faq
or through www:
ftp://ftp.fwi.uva.nl/pub/solaris/solaris2.html
-------------------------------------------------------------------------
*** If you wait for a couple days, it will come by mail - it is published
every fortnight on the list...
--------------------------------------------------------------------------
You should check out thor.ece.uc.edu:/pub/sun-faq/*
-- Luke W. Mentzer (lwm@drmail.dr.att.com | luke_mentzer@att.com) (303) 538-3572 AT&T GBCS Laboratories 11900 N. Pecos St. Room 1D34 Denver, Colorado 80234
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:09:10 CDT