On Sun, 19 Jan 2003 19:59:21 -0600
Zane Minninger <[EMAIL PROTECTED]> wrote:

> How would I create an FTP only ID, with no home directory.  a generic
> with read only access.  I currently have a username and password on the
> system and I am using that, but that doesn't sound very safe, the more I
> think about it.  I would like someone to log in and be dumped into the
> /var/ftp directory with read only rights and no browsing higher than the
> /var/ftp directory but with total read rights down.
>    Zane Minninger

Just create user as normal, but for login shell, specify /sbin/nologin.
For home directory, I specify /nohome and don't give the user access.

As far as locking the user into an ftp directory, I think that depends on
what you use for your ftp server. With proftpd, I have in
/etc/proftpd.conf:

DefaultRoot /path/to/defaultusers/directory !restrictedgroupname
DefaultRoot /path/to/restrictedusers/directory

I just send non-restricted users to their home directory and restricted
users to another.

Todd

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to