# An example moftpd configuration file with virtual hosts. # $Id: example.conf 1186 2004-10-25 14:27:26Z morth $ UnprivUid nobody UnprivGid nogroup Port 21 Bind 1.2.3.4 AllowForeign yes AllowLogin no PassIfInvalid no UserInvalidMsg "Only anonymous access at this address." Chroot ~ MaxIdle 5m PAMService ftpd DirectoryMsgFile README Alias ftp Anonymous yes # Anonymous turns on AllowLogin MaxLogins 50 Home "~ftp" # Hide and disallow .-files. Mask ".*" Deny all Hidden yes Deny all Allow reading FakeUser ftp FakeGroup ftp FakeFileMode "-rw-r--r--" FakeDirMode "drwxr-xr-x" # An incoming directory is actually a bad idea since the are people # scanning for them. Deny listing Allow storing Hidden yes # This subserver still allows anonymous access as it inherits the user. Bind 192.168.0.1 Range 192.168.0.0/16 AllowForeign no AllowLogin yes PassIfInvalid yes Reset UserInvalidMsg Chroot "/"