Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 May 2003 10:39:25 +0100 (BST)
From:      William Palfreman <william@palfreman.com>
To:        Andy Farkas <andyf@speednet.com.au>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: nologin access
Message-ID:  <20030511103104.J79934@ndhn.yna.cnyserzna.pbz>
In-Reply-To: <20030511100512.L30401-100000@hewey.af.speednet.com.au>
References:  <20030511100512.L30401-100000@hewey.af.speednet.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 11 May 2003, Andy Farkas wrote:

> On Sat, 10 May 2003, admin wrote:
>
> > what is the easiest way to do this not allow shell and ssh access to
> > the box?
>
> Don't run sshd.
>
> or possibly
>
> man 5 nologin

To disable logins on individual accounts, set the shell for that account
to /sbin/nologin.  See man 8 nologin.  You can also set the AllowUsers
keyword in /etc/ssh/sshd_conf, to allow console logins but to only allow
specific users to log in using ssh.

Bill.

-- 
W. Palfreman. 			I'm looking for a job. Read my CV at:
Tel: 0771 355 0354		www.palfreman.com/william/cv-wfp2.html



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030511103104.J79934>