Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Jan 2002 00:56:53 -0500
From:      Paul Chvostek <paul@it.ca>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: FTP only account without user on the shell
Message-ID:  <20020128005653.B33089@mail.it.ca>
In-Reply-To: <04d501c1a789$565e66f0$faa0b542@noc>; from ml@db.nexgen.com on Sun, Jan 27, 2002 at 06:21:21PM -0500
References:  <20020127223938.5811748449@wastegate.net> <04d501c1a789$565e66f0$faa0b542@noc>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <mav@wastegate.net>
> 
> > 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                                             <paul@it.ca>
  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




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