sauvage.
J´ai un probleme avec prtoftpd: Je ne voit pas le contenu de / mnt/ftp quand je teste mon serveur en localhost alors que je veut le voir. Voici mon proftpd.conf:
#
- / etc/proftpd.conf -- This is a basic ProFTPD configuration file.
- To really apply changes reload proftpd after modifications.
#
ServerName "Raktabija"
ServerType standalone
DeferWelcome off
UseFtpUsers on
MultilineRFC2228 on
DefaultServer on
ShowSymlinks on
DefaultChdir / mnt/ftp
DefaultRoot / mnt/ftp
TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200
DisplayLogin welcome.msg
DisplayFirstChdir . message
ListOptions "-l"
DenyFilter \*.*/
- Uncomment this if you are using NIS or LDAP to retrieve passwords:
- PersistentPasswd off
- Uncomment this if you would use TLS module:
- TLSEngine on
- Uncomment this if you would use quota module:
- Quotas on
- Uncomment this if you would use ratio module:
- Ratios on
- Port 21 is the standard FTP port.
Port 21
- 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 nogroup
- Umask 022 is a good standard umask to prevent new files and dirs
- ( second parm) from being group and world writable.
Umask 022 022
- Normally, we want files to be overwriteable.
AllowOverwrite on
- Delay engine reduces impact of the so-called Timing Attack described in
- http://security.lss.hr/index.php?page=details&ID=LSS-2004-10-02
- It is on by default.
- DelayEngine off
- A basic anonymous configuration, no upload directories.
< Anonymous / mnt/ftp>
User ftp
Group nogroup
UserAlias anonymous ftp
- # We want clients to be able to login with " anonymous" as well as " ftp"
# Cosmetic changes, all files belongs to ftp user
- DirFakeUser on ftp
- DirFakeGroup on ftp
#
RequireValidShell off
AnonRequirePassword off
#
- # 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
< Directory *>
< Limit WRITE>
DenyAll
< /Limit>
< /Directory>
#
- # Uncomment this if you´re brave.
- # < Directory incoming>
- # # Umask 022 is a good standard umask to prevent new files and dirs
- # # ( second parm) from being group and world writable.
- # Umask 022 022
- # < Limit READ WRITE>
- # DenyAll
- # < /Limit>
- # < Limit STOR>
- # AllowAll
- # < /Limit>
- # < /Directory>
#
< /Anonymous>
et mon ftpusers:
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
bin:x:2:2:bin:/bin:/bin/sh
sys:x:3:3:sys:/dev:/bin/sh
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/bin/sh
man:x:6:12:man:/var/cache/man:/bin/sh
lp:x:7:7:lp:/var/spool/lpd:/bin/sh
mail:x:8:8:mail:/var/mail:/bin/sh
news:x:9:9:news:/var/spool/news:/bin/sh
uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
proxy:x:13:13:proxy:/bin:/bin/sh
www-data:x:33:33:www-data:/var/www:/bin/sh
backup:x:34:34:backup:/var/backups:/bin/sh
list:x:38:38:Mailing List Manager:/var/list:/bin/sh
irc:x:39:39:ircd:/var/run/ircd:/bin/sh
gnats:x:41:41:Gnats Bug-Reporting System ( admin):/var/lib/gnats:/bin/sh
postfix:x:100:103::/var/spool/postfix:/bin/false
syslog:x:105:105::/home/syslog:/bin/false
klog:x:106:106::/home/klog:/bin/false
darkwings:x:1000:1000:DarKwings,,,:/home/darkwings
:/bin/bash
messagebus:x:101:110::/var/run/dbus:/bin/false
cupsys:x:102:107::/:/bin/false
fetchmail:x:103:65534::/var/run/fetchmail:/bin/sh
hal:x:111:111:Hardware abstraction layer,,,:/var/run/hal:/bin/false
saned:x:113:113::/home/saned:/bin/false
gdm:x:104:114:Gnome Display Manager:/var/lib/gdm:/bin/false
les 2 sont dans / etc .
J´ai fait chmod -R 777 / mnt/ftp .
Mon objectif est d´avoir un ftp anonyme pointant sur mon / mnt/ftp .
Quelle est l´enormité que j´ai encore commit pour que cela ne marche pas?