Форум русскоязычного сообщества Ubuntu


Увидели сообщение с непонятной ссылкой, спам, непристойность или оскорбление?
Воспользуйтесь ссылкой «Сообщить модератору» рядом с сообщением!

Автор Тема: proftpd запретить пользователю менять home directory  (Прочитано 823 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн mouserok

  • Автор темы
  • Активист
  • *
  • Сообщений: 326
    • Просмотр профиля
HELP

никак не могу запереть пользователя в home directory

ftpd.passwd
Цитировать
mouser:passsss/:33:33::/opt/ftp/mouser:/bin/false

proftpd.conf
Цитировать

ServerName         "ProFTPD Default Installation"
ServerType         standalone
DefaultServer         on
ServerIdent         on "FTP Server ready. ProFTPD"
AccessGrantMsg         "User %u logged in."

# Default to show dot files in directory listings
ListOptions         "-a"

# Define the log formats
LogFormat         default   "%h %l %u %t \"%r\" %s %b"
LogFormat         auth   "%v [%P] %h %t \"%r\" %s"

ExtendedLog      /opt/proftpddd3/var/access.log ALL default
ExtendedLog      /opt/proftpddd3/var/auth.log AUTH auth

# Don't use IPv6 support by default.
UseIPv6            off

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and 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.  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 under which the server will run.
User            mouserok
Group            mouserok

# Normally, we want files to be overwriteable.
AllowOverwrite      on

# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
  DenyAll
</Limit>

<IfModule mod_sftp.c>

        SFTPEngine on
        Port 2222
        SFTPLog /opt/proftpddd3/var/sftp.log


CDPath ~ %u
DefaultChdir ~ %u
DefaultRoot ~ %u

        # Configure both the RSA and DSA host keys, using the same host key
        # files that OpenSSH uses.
        SFTPHostKey /opt/proftpddd3/etc/RSA_.ppk

        SFTPAuthMethods password

   RequireValidShell no

        # Enable compression
        SFTPCompression delayed

</IfModule>

<Global>
  AllowOverwrite      yes
  <Limit ALL SITE_CHMOD>
    AllowAll
  </Limit>
</Global>

  <Limit EPSV PASV>
    DenyAll
  </Limit>

#Только виртуальные пользователи
AuthUserFile /opt/proftpddd3/etc/ftpd.passwd
#AuthGroupFile /usr/local/etc/proftpd/ftpd.group
AuthOrder mod_auth_file.c
RequireValidShell off

 

Страница сгенерирована за 0.025 секунд. Запросов: 21.