From owner-freebsd-questions Thu Dec 17 22:49:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA27888 for freebsd-questions-outgoing; Thu, 17 Dec 1998 22:49:19 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mailhub.ainet.com (mailhub.ainet.com [204.30.40.29]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA27883 for ; Thu, 17 Dec 1998 22:49:17 -0800 (PST) (envelope-from jmscott@ainet.com) Received: from shell.ainet.com (jmscott@shell.ainet.com [204.30.40.108]) by mailhub.ainet.com (8.9.1/8.9.1) with SMTP id WAA25749; Thu, 17 Dec 1998 22:49:08 -0800 (PST) Received: from localhost by shell.ainet.com (4.1/SMI-4.1) id AA17044; for freebsd-questions@FreeBSD.ORG; Thu, 17 Dec 98 22:51:12 PST Date: Thu, 17 Dec 1998 22:51:11 -0800 (PST) From: "Joseph M. Scott" To: Graeme Tait Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Preventing/terminating remote logins In-Reply-To: <3679ED2A.746B@echidna.com> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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