Click to See Complete Forum and Search --> : PROFTPd with debian


LuvLinux
09-14-2001, 02:06 PM
Hi,

Does anyone know how to chroot using the latest version of debian and proftpd for basic virtual?

A sample proftpd.conf would be awesome!

Thanks

Strike
09-14-2001, 02:38 PM
http://www.proftpd.org/docs/

It's the same as in any other distribution.

LuvLinux
09-14-2001, 02:48 PM
Thanks but it does not work with debian.

Been there.

Need a sample for debian.

LuvLinux
09-14-2001, 02:51 PM
Do I need to add /bin/false to my /etc/shells?

Thanks

LuvLinux
09-14-2001, 03:12 PM
This is what I have:


ServerName "Debian"
ServerType standalone
DeferWelcome off

ShowSymlinks on
MultilineRFC2228 on
DefaultServer on

ShowSymlinks on
AllowOverwrite on

TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200

DisplayLogin welcome.msg
DisplayFirstChdir .message
LsDefaultOptions "-l"

# Port 21 is the standard FTP port.
Port 21

# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask 022 022

# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances 30

# Set the user and group that the server normally runs at.
User nobody
Group nogroup

# Normally, we want files to be overwriteable.
<Directory /*>
AllowOverwrite on
</Directory>

# A basic anonymous configuration, no upload directories.

## <Anonymous ~ftp>
## User ftp
## Group nogroup
## # We want clients to be able to login with "anonymous" as well as "ftp"
## UserAlias anonymous ftp
##
## RequireValidShell off
##
## # Limit the maximum number of anonymous logins
## MaxClients 10
##
## # We want 'welcome.msg' displayed at login, and '.message' displayed
## # in each newly chdired directory.
## DisplayLogin welcome.msg
## DisplayFirstChdir .message
##
## # Limit WRITE everywhere in the anonymous chroot
## <Directory *>
## <Limit WRITE>
## DenyAll
## </Limit>
## </Directory>
##
## # Uncomment this if you're brave.
## # <Directory incoming>
## # <Limit READ WRITE>
## # DenyAll
## # </Limit>
## # <Limit STOR>
## # AllowAll
## # </Limit>
## # </Directory>
##
## </Anonymous>

I would really appreciate some guidance on what do first? Or adding directories.

Thanks

Strike
09-14-2001, 03:37 PM
Originally posted by LuvLinux:
<STRONG>Thanks but it does not work with debian.

Been there.

Need a sample for debian.</STRONG>
It works the same as any other distribution. If you have a working configuration from another distribution, it will work with Debian as well

LuvLinux
09-14-2001, 04:06 PM
Hello,

I did a search for PROFTPD and it seems none of the questions have ever been answered.

Is there ONE person out there that can take the time to show an example instead of saying "search" or "read the docs?" If some of us knew the answers we would not be here in the first place.

Or does anyone actually know of a forum where answers are given instead of the above referenced replies??!!

element-x
09-14-2001, 04:17 PM
Actually, if you took the time to listen to strike, you would realize he is correct.

chroot'ing proftpd in debian, is like chroot'ing proftpd in slackware as in suse and so on.

It isn't so much that anyone here, doesn't know the answer, it's more or less the fact that everyone (I think) would rather have you LEARN what you're doing, rather than be told what to do, and not understand it. (maybe this isn't the situation...who knows)

Strike
09-14-2001, 04:23 PM
http://pdd.sourceforge.net/faq/proftpdfaq-5.html#ss5.12

I got this from that page I linked you to.
I didn't know how to do it either, but I just looked for a little while and I found it. I thought you might be able to do the same, which is why I just pointed to the docs and didn't point to a particular solution.