From owner-freebsd-security  Thu Mar  6  3:53: 6 2003
Delivered-To: freebsd-security@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B48FE37B401
	for <security@freebsd.org>; Thu,  6 Mar 2003 03:53:04 -0800 (PST)
Received: from mail.web.am (wizard.web.am [217.113.0.66])
	by mx1.FreeBSD.org (Postfix) with SMTP id C8CCA43F75
	for <security@freebsd.org>; Thu,  6 Mar 2003 03:52:53 -0800 (PST)
	(envelope-from nm@web.am)
Received: (qmail 91648 invoked from network); 6 Mar 2003 11:53:19 -0000
Received: from g.web.am (217.113.0.41)
  by wizard.web.am with SMTP; 6 Mar 2003 11:53:19 -0000
From: Gaspar Chilingarov <nm@web.am>
Organization: WEB Lt.d
To: Oleg Shevtsov <sat@orion.interexc.com>, security@freebsd.org
Subject: Re:
Date: Thu, 6 Mar 2003 15:52:43 +0400
User-Agent: KMail/1.5
References: <20030120101323.GA371@interexc.com>
In-Reply-To: <20030120101323.GA371@interexc.com>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="windows-1251"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200303061552.43429.nm@web.am>
Sender: owner-freebsd-security@FreeBSD.ORG
Precedence: bulk
List-ID: <freebsd-security.FreeBSD.ORG>
List-Archive: <http://docs.freebsd.org/mail/> (Web Archive)
List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions)
List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-security>
List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-security>
X-Loop: FreeBSD.org

On Monday 20 January 2003 14:13, Oleg Shevtsov wrote:
> Hi,
> how to give specific user FTP but no shell access?
> Ftpd's manual says:
>            4.   The user must have a standard shell returned by
>                 getusershell(3).
> But I don't want to give shell account.
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-security" in the body of the message


ln /sbin/nologin /sbin/ftp-nologin
echo "/sbin/ftp-nologin" >> /etc/shells

add user as usual, but set shell to ftp-nologin



---
Gaspar Chilingarov



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