LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   proftpd configuration...help!! (https://www.linuxquestions.org/questions/linux-software-2/proftpd-configuration-help-386585/)

time112852 11-25-2005 10:27 PM

proftpd configuration...help!!
 
I am trying to configure my ftp server using proftpd. Yes i have heard of better ftp servers..but i just need to get this up and running for a few days. So far i have the user webguest able to log in but i cant set the default root directory. When I log in, there are no directories. I don't want anonymous access but I don't know to set it to not have anonymous access. I just want one user to log in as webguest and the root directory to be /inet. Here is my configuation file:

Quote:

# This is a basic ProFTPD configuration file.
# It establishes a single server and a single anonymous login.
# It assumes that you have a user/group "nobody" and "ftp"
# for normal/anonymous operation.

ServerName "FTP Server"
ServerType standalone
#ServerType inetd
DefaultServer on

# Port 21 is the standard FTP port.
Port 21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 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 3

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

# This next option is required for NIS or NIS+ to work properly:
#PersistentPasswd off

SystemLog /var/log/proftpd.log
TransferLog /var/log/xferlog

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

# A basic anonymous FTP server configuration.
# To enable this, remove the user ftp from /etc/ftpusers.
<Anonymous /inet>
RequireValidShell off
User webguest
Group ftp
# We want clients to be able to login with "anonymous" as well as "ftp"
# UserAlias ftp

# Limit the maximum number of anonymous logins
MaxClients 3

# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin welcome.msg
DisplayFirstChdir .message

<Directory /inet>

AllowOverwrite On

<Limit WRITE LIST READ CWD MKD RMD DELE STOR>
AllowUser webguest
</Limit>

</Directory>

</Anonymous>


time112852 11-26-2005 02:03 PM

*bump* anyone?

number9 11-28-2005 10:02 PM

Add "DefaultRoot ~" to your config

http://www.proftpd.org/docs/directiv...faultRoot.html

http://www.castaglia.org/proftpd/doc...TO-Chroot.html

time112852 11-29-2005 10:12 AM

I changed the configuration..but i'm still having problems. I can log in but when I log in I just get a blank screen. I dont see any existing folders, but when I type the folder name in the url it will go to it and i can see all of the files in that folder. How can I make it so when I am chrooted into my /inet directory, I can see all of the existing files and folders in that folder?

Here is my configuration:
Code:

# ProFTPd configuration

ServerName                        "FTP Server"
ServerType                        standalone
DefaultServer                        on
Port                                21
MaxInstances                        30
MaxClients                        5
TimeoutStalled                        120
TimeoutLogin                        120
TimeoutIdle                        600
TimeoutNoTransfer                                600
#Umask                                022
PassivePorts                        60000 65535

# User and group server runs at
User                                nobody
Group                                nogroup

# Log file directories
SystemLog                        /var/log/proftpd.log
TransferLog                        /var/log/xferlog

# Set directory for user to be chrooted to
DefaultRoot /inet



All times are GMT -5. The time now is 06:15 AM.