LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-25-2005, 10:27 PM   #1
time112852
Member
 
Registered: Aug 2003
Location: Pennsylvania, USA
Distribution: Gentoo 2.6.30
Posts: 92

Rep: Reputation: 15
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>
 
Old 11-26-2005, 02:03 PM   #2
time112852
Member
 
Registered: Aug 2003
Location: Pennsylvania, USA
Distribution: Gentoo 2.6.30
Posts: 92

Original Poster
Rep: Reputation: 15
*bump* anyone?
 
Old 11-28-2005, 10:02 PM   #3
number9
Member
 
Registered: Dec 2003
Location: Fresno
Distribution: Gentoo Ricer
Posts: 85

Rep: Reputation: 15
Add "DefaultRoot ~" to your config

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

http://www.castaglia.org/proftpd/doc...TO-Chroot.html
 
Old 11-29-2005, 10:12 AM   #4
time112852
Member
 
Registered: Aug 2003
Location: Pennsylvania, USA
Distribution: Gentoo 2.6.30
Posts: 92

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
proftpd configuration lok1 Linux - Software 1 12-04-2003 11:41 PM
Proftpd configuration help exalik Linux - Security 1 09-06-2003 03:27 PM
proftpd configuration sqn Slackware 2 04-14-2003 04:44 PM
proFTPD configuration help please ScreeminChikin Linux - Networking 1 01-04-2003 07:59 PM
ProFTPd Configuration Help needamiracle Linux - Software 2 09-28-2002 11:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration