Suggesties.... Ja Debian gebruiken, maar das natuurlijk wel erg flauw.
Onder de Rode Hoed schaart zich ook het veelgebruikte programma: proftp(d)
www.proftp.org Dit zal ongetwijfeld wel ergens als RPM te verkrijgen zijn.
een deel van de /etc/proftpd.conf
- - -
<Anonymous ~ftp>
User ftp
Group nogroup
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
RequireValidShell off
HideUser root
# Limit the maximum number of anonymous logins
MaxClients 10
# bandwidth limitations
# bandwidth limitation at 90 KB/s
# bandwidth limit kick in after 256 KB
# force bandwidth limits after 256 KB downloaded
RateReadBPS 90000
RateReadFreeBytes 262144
RateReadHardBPS on
# 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>
<Limit READ WRITE>
DenyAll
</Limit>
<Limit READ WRITE STOR>
AllowAll
</Limit>
</Directory>
</Anonymous>
- - -
Nou lijkt me toch wel duidelijk he? Directory incoming kun je de zooi kwijt. Dit is gewoon de 'user' directory van de user 'ftp' die lid is van group 'nogroup'. Zo'n ftp user is een system user met als shell /bin/false en geen password. Maar heeft wel een home directory (/home/ftp)
Deze directory is lekker gemapped als je 'anonymous' inlogd en ook alleen daar kun je rondzwerven.
so far so good?