Страница 1 из 1

Proftp как настроить права

Добавлено: 2011-11-21 21:44:25
Demontager
У меня apache на сервере (Debian 6) работает от пользователя www-data и группы www-data. Сайты находятся в директории /var/www (имеют права www-data:www-data)
Хочу настроить Proftp чтоб пользователь при логине сразу попадал /var/www и имел все права на чтение,запись. У пользователя www-data, пароля нет само собой. Может просто хватит создать какого-то пользователя и назначить группу www-data чтобы он мог писать в /var/www ?
У меня есть такой шаблонный конфиг

Код: Выделить всё

ServerName "ProFTPD Debian Server"
ServerType standalone
DefaultServer on
RequireValidShell off
AuthPAM off
AuthPAMConfig ftp

# Listen on the standard FTP port 21.
Port 21

# New directories and files should not be group or world writable.
Umask 022

# 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.
MaxInstances 30

# The server will run under ftp/ftp.
User				www-data
Group				www-data

# Every FTP sessions is "jailed" into the user's home directory.
DefaultRoot ~

# Generally files are overwritable.
AllowOverwrite on

# Disallow the use of the SITE CHMOD command.
<Limit SITE_CHMOD>
  DenyAll
</Limit>

# A basic anonymous FTP account without an upload directory.
<Anonymous ~ftp>
  User ftp
  Group nogroup

  # Clients can login with the username "anonymous" and "ftp".
  UserAlias anonymous ftp

  # Limit the maximum number of parallel anonymous logins to 10.
  MaxClients 10

  # Prohibit the WRITE command for the anonymous users.
  <Limit WRITE>
    DenyAll
  </Limit>

# Enable login when acl is on
#<Limit LOGIN>
#    Allow All
#  </Limit>

</Anonymous>

Re: Proftp как настроить права

Добавлено: 2011-11-30 8:44:00
weec
в сети полно руководств, глянь тут
http://hi.hlsn.net/news/installing-lamp ... ql-and-php