From owner-freebsd-security Thu Jan 13 17:43:14 2000 Delivered-To: freebsd-security@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 55D2914DF1 for ; Thu, 13 Jan 2000 17:43:10 -0800 (PST) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.9.3) id UAA15101; Thu, 13 Jan 2000 20:45:21 -0500 (EST) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <200001140145.UAA15101@cc942873-a.ewndsr1.nj.home.com> Subject: Re: Disallow remote login by regular user. In-Reply-To: from Nicholas Brawn at "Jan 14, 2000 12:06:36 pm" To: ncb@zip.com.au (Nicholas Brawn) Date: Thu, 13 Jan 2000 20:45:20 -0500 (EST) Cc: freebsd-security@FreeBSD.ORG Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Nicholas Brawn wrote, > Hi folks. I'm trying to ocnfigure my system so that I can disallow a > particular user account from being able to login remotely, and forcing > users to su to the account instead. How may I configure this? > > PS. Users may be using anything from telnet to ssh to login to the system, > so I need something that works across the board. For anything that is going to call login(1), you can use /etc/login.access(5). That pretty much eliminates stuff like telnet, rlogin, and console logins. For SSH, look at the 'AllowUsers' and 'DenyUsers' keywords for the sshd_conf file on the sshd(8) manpage. And of course, if ftp(1) is an issue, there is /etc/ftpusers as described in ftpd(8). None of these options, however, should mess with su(1). -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message