From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,8e0c07dad7ae90de X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1995-01-10 12:46:23 PST Path: nntp.gmd.de!newsserver.jvnc.net!news.cac.psu.edu!news.pop.psu.edu!psuvax1!news.ecn.bgu.edu!usenet.ins.cwru.edu!ns.mcs.kent.edu!kira.cc.uakron.edu!malgudi.oar.net!hyperion.wright.edu!valhalla.cs.wright.edu!s001pme From: s001pme@discover.wright.edu (Phil Edwards) Newsgroups: comp.unix.osf.osf1 Subject: Re: Disable logins Date: 10 Jan 1995 20:46:23 GMT Organization: CCS for CECS, Wright State Distribution: world Message-ID: <3eurmv$4qb@valhalla.cs.wright.edu> References: <3ejoau$rff@tibalt.supernet.ab.ca> Reply-To: pedwards@valhalla.cs.wright.edu NNTP-Posting-Host: discgate.wright.edu X-Newsreader: TIN [version 1.2 PL2] Using the secret identity of <3ejoau$rff@tibalt.supernet.ab.ca>, it seems Data Business Forms (dbform@tibalt.supernet.ab.ca) sez: :How do I disable people from logging in to the system when it is in multi :user mode? Other than renaming the /etc/passwd file ( which disables the :root login) what are my options? I have heard of a file called :nologin(s)? but I am unsure as to how it works. I'm uncertain whether $people == "everybody" or $people == "specific ppeople such as troublemakers, Rsh'ers, and guest accounts". If it's only a few people, use vipw to change their /etc/paswd line (put their shell as /bin/false, for example). Just be sure and change it back when you're done.... If you're after a global disabling, you can either play around with changing the path/permissions of /bin/login, or write a script to alter /etx/passwd (e.g., rename it and create a new one consisting of only the administration entries, extracted from the real file). Good luck! -- Phil Edwards | The gods do not protect fools. Fools pedwards@valhalla.cs.wright.edu | are protected by more capable fools. --------------------------------| -Larry Niven