-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
114 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Includes DSO modules | ||
Include /etc/proftpd/modules.conf | ||
|
||
|
||
# Basics, some site-specific | ||
ServerName "Public Galaxy FTP" | ||
ServerType standalone | ||
DefaultServer on | ||
Port 21 | ||
Umask 077 | ||
#SyslogFacility DAEMON | ||
#SyslogLevel debug | ||
MaxInstances 30 | ||
User nobody | ||
Group nogroup | ||
|
||
# Passive port range for the firewall | ||
PassivePorts 30000 40000 | ||
|
||
# Cause every FTP user to be "jailed" (chrooted) into their home directory | ||
DefaultRoot ~ | ||
|
||
# Automatically create home directory if it doesn't exist | ||
CreateHome on dirmode 700 | ||
|
||
# Allow users to overwrite their files | ||
AllowOverwrite on | ||
|
||
# Allow users to resume interrupted uploads | ||
AllowStoreRestart on | ||
|
||
# Bar use of SITE CHMOD | ||
<Limit SITE_CHMOD> | ||
DenyAll | ||
</Limit> | ||
|
||
# Bar use of RETR (download) since this is not a public file drop | ||
<Limit RETR> | ||
DenyAll | ||
</Limit> | ||
|
||
# Do not authenticate against real (system) users | ||
AuthPAM off | ||
|
||
# Set up mod_sql_password - Galaxy passwords are stored as hex-encoded SHA1 | ||
SQLPasswordEngine on | ||
SQLPasswordEncoding hex | ||
|
||
# Set up mod_sql to authenticate against the Galaxy database | ||
SQLEngine on | ||
SQLBackend postgres | ||
SQLConnectInfo galaxy@localhost galaxy galaxy | ||
SQLAuthTypes SHA1 | ||
SQLAuthenticate users | ||
|
||
# An empty directory in case chroot fails | ||
SQLDefaultHomedir /var/opt/local/proftpd | ||
|
||
# Define a custom query for lookup that returns a passwd-like entry. UID and GID should match your Galaxy user. | ||
SQLUserInfo custom:/LookupGalaxyUser | ||
SQLNamedQuery LookupGalaxyUser SELECT "email,password,'root','root','/export/galaxy-central/database/ftp/%U','/bin/bash' FROM galaxy_user WHERE email='%U'" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters