ftp config

Karel SOMMER karel na inway.cz
Středa Září 15 12:01:43 CEST 1999


msvarc na ketos.zeal.cz wrote:

> potreboval bych jestli bych jestli by mi nekdo neporadil s
> nakonfigurovanim ftpka ...potreboval bych aby mi kazdy user po lognuti
> pridelen pouze jeden adresar a z toho nikam jinsam nemohl ..videl jsem na
> netu reseni pres virtual ftp ale to se mi nezda prilis optimalni ... diky

u proftpd to muzete udelat treba (a nemusite kazdemu delat /bin/ls apod):

---------------------cut----------------------------
# Set the user and group that the server normally runs at.
User                            nobody
Group                           wheel

DefaultRoot ~

<Directory /*>
  AllowOverwrite                off
  <Limit ALL>
    DenyAll
  </Limit>
</Directory>

<Directory ~>
   AllowOverwrite                on
   <Limit ALL>
   AllowAll
   </Limit>
</Directory>

# A basic anonymous configuration, no upload directories.
<Anonymous ~ftp>
  RequireValidShell             off
  User                          ftp
  Group                         ftp
  # We want clients to be able to login with "anonymous" as well as "ftp"
  UserAlias                     anonymous ftp

  # 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
  <Limit WRITE>
    DenyAll
  </Limit>

</Anonymous>
-----------------cut---------------------

karel


Další informace o konferenci Linux