All pastes #194914 Raw Edit

Someone

public text v1 · immutable
·published 2006-10-08 17:03 UTC
rendered paste body
AllowOverwrite on
AuthAliasOnly on

# User Aliases
UserAlias sambauserftp sambauser
UserAlias dlaul wwwdownload

ServerName			"Linux FTP Server"
ServerType 			standalone
DeferWelcome			on

MultilineRFC2228 on
DefaultServer			on
ShowSymlinks			off

TimeoutNoTransfer 300
TimeoutStalled 60
TimeoutIdle 300

DisplayFirstChdir               .message
ListOptions                	"-l"

RequireValidShell 		off

TimeoutLogin 20

RootLogin 			off

ExtendedLog 			/var/log/ftp.log
TransferLog 			/var/log/xferlog
SystemLog			/var/log/syslog.log

# When on, the server will check if a user is on the ban list found in /etc/ftpusers
UseFtpUsers on

AllowStoreRestart		on
Port				21
MaxInstances 10

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

Umask				022	022

PersistentPasswd		off

MaxClients 2
MaxClientsPerHost 2
MaxClientsPerUser 1
MaxHostsPerUser 1

AccessGrantMsg "Welcome!"
ServerIdent                  on       "Hello!"

DefaultRoot /media/samba

# DO NOT EDIT! THIS CONTAINS USERS IN THEIR HOME DIRECTORY!
DefaultRoot ~

MaxLoginAttempts    2

# THESE ARE VALID LOGINS USING ALIASES
<Limit LOGIN>
AllowUser sambauser
AllowUser wwwdownload
DenyALL
</Limit>

# THESE ARE DIRECTORY PERMISSIONS
#wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
<Directory /media/samba>
Umask 022 022
AllowOverwrite off
       <Limit ALL>
		Order Allow,Deny
		AllowUser sambauser
		Deny ALL
	</Limit>
	<Limit MKD STOR DELE XMKD RNEF RNTO RMD XRMD>
	DenyAll
	</Limit>
#wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww	
       <Limit ALL>
		Order Allow,Deny
		AllowUser wwwdownload
		Deny ALL
	</Limit>
	<Limit MKD STOR DELE XMKD RNEF RNTO RMD XRMD>
	DenyAll
	</Limit>
</Directory>


# DO NOT EDIT! THIS CONTAINS TLS ENCRYPTION REQUIREMENTS!
<IfModule mod_tls.c>
    TLSEngine on
    TLSLog /var/ftpd/tls.log
    TLSProtocol TLSv1
    TLSRequired on
    TLSVerifyClient off

    TLSRSACertificateFile /etc/ftpcert/server.crt
    TLSRSACertificateKeyFile /etc/ftpcert/server.key
    TLSCACertificateFile /etc/ftpcert/ca.crt

</IfModule>