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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Proftpd Configuartion Problems

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am having problems with configuring an FTP site on my solaris Spard edition box. Could you guys tell me how to configure the proftpd.conf file. I have looked up the documentation and its very confusing. If you could send me a sample .conf file that is working it would be great.

Thanks in advance


 
Try This setup of proftpd.conf notice the DefaultRoot section. This will Jail users into only accessing the directory specified in proftpd DefaultRoot secction. Users are restricted by the Unix group membership so make sure you have a group setup for the users you want to Jail. I setup a separate group for genesis and revgro in this example, which jails them into their home directories. The ! means everyone except users in the "bang" group are restricted.




ServerName "FTP server"
ServerType standalone
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 30

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

# This causes proftpd to perform a chroot into the authenticating user's directo
ry
# immediately after login.
# Once this happens, the user is unable to "see" higher level directories.
# Because a group-expression is included, only users who are a member of
# the group 'users' and NOT a member of 'staff' will have their default
# root directory set to '~'.
# DefaultRoot ~ users,!staff
DefaultRoot /export/home/pub/revgro rev,!bang
DefaultRoot /export/home/pub/genesis gen,!bang

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

# A basic anonymous configuration, no upload directories.
<Anonymous ~ftp>
User ftp
Group ftp
# We want clients to be able to login with &quot;anonymous&quot; as well as &quot;ftp&quot;
UserAlias anonymous ftp

# 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
<Limit WRITE>
DenyAll
</Limit>

</Anonymous>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top