Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ProFTPD Configuration

Status
Not open for further replies.

fatcodeguy

Programmer
Feb 25, 2002
281
CA
Does anyone know how to configure proftpd? I want all users who have an account on the server an account on proftpd, and on top of that, I want to be able to assign accounts to people who don't have an account on the server. How can I do this? What privilege differences are there between anynymous, guest, and real accounts ? What do the user and group directives mean? Would appreciate a conf file sample if possible. Thanks for the help
 
Hi,

Well, the config file is /etc/proftpd.conf and it also can use .ftpaccess files for security. The config syntax is quite similar to apache.

There are some example configs here --> and at the end of the user guide --> .

Anonymous users are those users who are unauthenticated by userid/password and who acquire the rights of the userid 'ftp' or whatever is set in the <Anonymous> config block. For example :

<Anonymous ~ftp>
User ftp
Group ftp
UserAlias Anonymous ftp
Requirevalidshell off
Maxclients 10
Displaylogin welcome.msg
DisplayFirstChDir .message
<Limit WRITE>
Denyall
</Limit>
</Anonymous>

By default, any linux user would be able to use the server with their normal userid/password combination.

The 'User' and 'Group' directives indicates under which linux userid & groupid the proftpd daemon itself runs (i.e. root or something more restrictive !) .


Hope this helps
 
Hi Ifincham,

I'm still having trouble loging in. For example, when I try loging with NCFTP, I get an error message:

Connecting to 192.168.1.50...
ProFTPD 1.2.5rc1 Server (Server) [system]
Login incorrect.
dialing (try 1)...
Interrupted

I don't even have a chance to enter a login name. But when I loging using FTP, it prompts for a username and password. If I try anonymous, it prompts for a password and I have no idea what the password is for user ftp (the default, set as &quot;no login allowed&quot; if I use webmin, should I change?). Loging in as a normal user works fine.

So my question is, how do fix it so that ncftp will log in. Here is my config file (I'm running redhat 7.1 if it makes a difference)


ServerName &quot;Server&quot;
ServerType standalone
DefaultServer on

Port 21
Umask 022
MaxInstances 30

User tom
Group users

<Directory /*>
AllowOverwrite on
</Directory>

<Anonymous ~ftp>
User ftp
Group ftp

# Login with &quot;anonymous&quot; as well as &quot;ftp&quot;
UserAlias anonymous ftp

# Maximum number of anonymous logins
MaxClients 10

DisplayLogin welcome.msg
DisplayFirstChdir .message

# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
DenyAll
</Limit>

</Anonymous>

<Global>
DefaultTransferMode binary
</Global>

Thanks for the help,
 
I don't know if allowing FTP at the root of the filesystem is a good idea.

You need to set up a password on the Linux server for user ftp (and any other user who will FTP in). I have mine set up where you are only allowed to ftp into /somefolder and group proftpd and user proftpd own the /somefolder directory. The proftpd user and group are the specified accounts that ProFtpd should use in the proftpd.conf file. The ftp user also must have access to wherever your trying to ftp into (or whoever you are trying to log in with). When you log in as anonymous, you must use an email address someone@somewhere.com as the password.

ChrisP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top