From owner-freebsd-questions Sun Jan 27 21:56:56 2002 Delivered-To: freebsd-questions@freebsd.org Received: from haggis.it.ca (haggis.it.ca [216.126.86.9]) by hub.freebsd.org (Postfix) with ESMTP id A138137B417 for ; Sun, 27 Jan 2002 21:56:53 -0800 (PST) Received: (from paul@localhost) by haggis.it.ca (8.11.6/8.11.6) id g0S5ur433558 for freebsd-questions@FreeBSD.ORG; Mon, 28 Jan 2002 00:56:53 -0500 (EST) (envelope-from paul) Date: Mon, 28 Jan 2002 00:56:53 -0500 From: Paul Chvostek To: freebsd-questions@FreeBSD.ORG Subject: Re: FTP only account without user on the shell Message-ID: <20020128005653.B33089@mail.it.ca> Mail-Followup-To: Paul Chvostek , freebsd-questions@FreeBSD.ORG References: <20020127223938.5811748449@wastegate.net> <04d501c1a789$565e66f0$faa0b542@noc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <04d501c1a789$565e66f0$faa0b542@noc>; from ml@db.nexgen.com on Sun, Jan 27, 2002 at 06:21:21PM -0500 X-Disclaimer: The opinions expressed in this email do not necessarily represent those of the author. Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Jan 27, 2002 at 06:21:21PM -0500, alexus wrote: > > why can't you read the whole sentence first? before answering it? not to > mention that someone else already answered > > i needed to know if its possible to add ftp only account WITHOUT adding user > to the shell! no entryes in /etc/passwd Don't jump on other people for your own inability to express yourself. Doug answered your question accurately. You asked the wrong question. A "shell" is a program that provides you with a command line interface. If you want a user that has no command line access to your server, you create an /etc/master.passwd entry that points to a shell (the last field on the line) that provides no command line, thus no shell. If what you *really* want to know is whether an FTP user can exist with no entry in the password file, then that would depend on the FTP daemon you're running. With the ftpd that ships with FreeBSD (and most other unix-like operating systems), the password file is the only place where passwords are stored. If you want to explore the documentation and configurations of some of the other FTP servers in the ports system, you're free to do so. It's possible that some others allow you to configure users in the FTP server's configuration file. You are free to do your own research. Learning the correct terminology and altering your attitude would be an excellent start. p > From: "Doug Reynolds" > > > On Sat, 26 Jan 2002 13:36:08 -0500, alexus wrote: > > > > >is it possible to have ftp only account without adding user on shell? > some > > >sort of virtual ftp account? just like for mail? > > > > yes- > > > > when you add the user, and when it asks for the shell, put no, or put > > /sbin/nologin which says no login for this account, or something to > > that effect. -- Paul Chvostek Operations / Development / Abuse / Whatever vox: +1 416 598-0000 it.canada http://www.it.ca/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message