[NTLUG:Discuss] ProFTPd

David Camm dcamm at advwebsys.com
Tue Oct 29 08:39:01 CST 2002


consider the following:

you need to add this into your proftpd.conf file: DefaultRoot ~ guestftp

guestftp is the name of a group (in /etc/group) for your users who will
be 'locked into' a particular directory on login.

let's take the case of user foo who needs ftp access to a single
directory /home/foo:

you create user foo (useradd) setting his home directory to /home/foo

you than add user foo into the group guestftp

when foo logs in with ftp, he will automatically be chrooted to
/home/foo which will appear to him as / . he can't go 'above' /home/foo
to /home or anywhere else. however, he can go down the path to
subdirectories of foo.

two things to be added to the above:

1. more than one user can have their home directory set to /home/foo

2. if users need access to multiple directories, you can do this easily
as long as the directories are in a single path - otherwise it gets
messy. it all depends on how your machine is organized - or how you
re-organize it!

i would recommend a serious reading of the proftpd docs as well as the
man page for useradd.

david camm

ps - folders are for windoze weenies <GRIN> 

MadHat wrote:
> 
> On Tue, 2002-10-29 at 06:32, Douglas King wrote:
> > I understand that ProFTPd is a safe and secure FTP server.I am having
> > problems configuring it where users can't "look around" through the
> > server.  Does anyone have a simple, easy to understand sample config that
> > shows / explains how to configure the conf file accordingly.  I have some
> > users that need multi folder access...some need ONE folder access.
> >
> > I have also noticed that when the folks use Cute FTP client, they log into
> > all the way down to /.  I have to stop that as well.
> >
> > Remember...new to Linux...go easy on me.  ;-)
> 
> Have you looked at stuff like this?
> http://www.guides.sk/proftpd/
> 
> >
> > Thanks.
> --
> MadHat at Unspecific.com
> "Anyone who understands Linux/Unix, really understands the universe.
>  Anyone who understands Windows, really understands Windows."
>           - Richard Thieme, DefCon 10, 2002
> 
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss




More information about the Discuss mailing list