Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Dec 1998 22:51:11 -0800 (PST)
From:      "Joseph M. Scott" <jmscott@ainet.com>
To:        Graeme Tait <graeme@echidna.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Preventing/terminating remote logins
Message-ID:  <Pine.GSU.4.05.9812172249190.16475-100000@www.ainet.com>
In-Reply-To: <3679ED2A.746B@echidna.com>

next in thread | previous in thread | raw e-mail | index | archive | help

	Check out /etc/login.access, add a line like :

-:ALL EXCEPT graeme :ALL


and you will be the only one allowed to login, period.  You may want to
make it less restrictive than that, depending on your needs.

* Joseph M. Scott
* jmscott@ainet.com
* American InfoMetrics
* Modesto, CA

On Fri, 18 Dec 1998, Graeme Tait wrote:

> For certain administrative tasks, I need to be able to ensure I'm the 
> only user on a remote system - that is, I need to boot existing users 
> (telnet and ftp) off, and prevent new logins.
> 
> I know I can make a /etc/nologin file, but then if I lose my connection, 
> I'm dead.
> 
> Is there a safe way to block logins other than my own?
> 
> 
> Also, what is the right way to forcibly remove existing users, should 
> they not voluntarily go away? Should I just kill all their processes?
> 
> 
> -- 
> Graeme Tait - Echidna
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSU.4.05.9812172249190.16475-100000>