Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Mar 2002 17:29:56 -0600 (CST)
From:      Steven Lake <raiden@shell.core.com>
To:        barazani <bara_zani@yahoo.com>
Cc:        Steven Lake <raiden@shell.core.com>, <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Selectively forbidding login
Message-ID:  <Pine.GSO.4.44L0.0203081728550.6940-100000@shell.core.com>
In-Reply-To: <028801c1c711$b6a6f110$7b00a8c0@motil>

next in thread | previous in thread | raw e-mail | index | archive | help
	Tested and works beautifully.  I created a fake login shell called
"ftploginonly" and put it in the shells file and it logs in fine.  Thanks.
You just saved another excedrin from a pointless death.  :)

On Fri, 8 Mar 2002, barazani wrote:

> try using proftp
> it will allow you to create multiple "anonymous" accounts ,regradless of
> wather the user has a local login or not .
> ----- Original Message -----
> From: "Steven Lake" <raiden@shell.core.com>
> To: <freebsd-questions@FreeBSD.ORG>
> Sent: Friday, March 08, 2002 3:03 PM
> Subject: Selectively forbidding login
>
>
> > Ok, I've looked around and tried the suggestion to modify a user's
> > login so that it reads /sbin/nologin for the shell to prevent user from
> > logging into ssh, but it also blocks them from logging in via FTP and all
> > other services as well.
> >
> > All I want it to do is prevent a user from logging into the server via
> > anything but FTP.  I want them to have FTP access and when they login
> > they land in their home directory with the path showing in the FTP
> > program as "/", but nothing else.  How would I best go about this?
> >
> > AKA.  When a user does "PWD" all they see is "Current directory is
> > /" instead of the full path and when they do a CD.. they can't go any
> > higher in the directory structure.  Basically put I'm wanting to set users
> > so that they can't see anything on the server except their home directory.
> >
> > Thanks again!
> >
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-questions" in the body of the message
> >
>
>


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?Pine.GSO.4.44L0.0203081728550.6940-100000>