From: "Денис Ягофаров" <denyago@rambler.ru> To: sysadmins@lists.altlinux.org Subject: [Sysadmins] 500 OOPS: unrecognised variable in config file: local_root Date: Tue, 27 Nov 2007 19:55:32 +0200 Message-ID: <474C5A14.4020608@rambler.ru> (raw) [-- Attachment #1: Type: text/plain, Size: 2824 bytes --] Доброго времени суток. Задача: При входе ftp-пользователя перемещать его в папку и дать возможность управлять файлами в ней. В наличии: - vsftpd-2.0.5-alt3, alterator-vsftpd-0.2-alt12 - папка: ls -lah /var/www/apache2/html total 44K drwxrwsr-x 4 di di 4.0K Nov 15 15:29 . drwxr-xr-x 6 root root 4.0K Nov 9 00:39 .. -rw-r--r-- 1 di di 2.3K Sep 4 23:59 apache_pb.gif -rw-r--r-- 1 di di 1.4K Sep 4 23:59 apache_pb.png -rw-r--r-- 1 di di 2.4K Sep 4 23:59 apache_pb22.gif -rw-r--r-- 1 di di 1.5K Sep 4 23:59 apache_pb22.png -rw-r--r-- 1 di di 2.2K Sep 4 23:59 apache_pb22_ani.gif -rw-r--r-- 1 di di 44 Sep 4 23:59 index.html drwxr-sr-x 11 di di 4.0K Nov 15 15:38 pma -rw-r--r-- 1 di di 25 Nov 10 23:17 test2.php drwxr-sr-x 5 di di 4.0K Nov 26 22:51 todo - конфиг vsftpd - настройки пользователя: cat /etc/vsftpd/user_conf/di write_enable=YES #local_root = /var/www/apache2/html anon_mkdir_write_enable=YES anon_other_write_enable=YES anon_upload_enable=YES dirlist_enable=YES download_enable=YES Проблема: если закоментировать local_root пользователь свободно заходит. ftp 192.168.100.103 Connected to 192.168.100.103 (192.168.100.103). 220 (vsFTPd 2.0.5) Name (192.168.100.103:root): di 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp> dir 200 PORT command successful. Consider using PASV. 150 Here comes the directory listing. drwx------ 2 ftp ftp 4096 Nov 27 14:41 Documents -rw------- 1 ftp ftp 3309 Nov 27 18:53 mysql.inc.php drwx------ 2 ftp ftp 4096 Nov 27 14:41 tmp 226 Directory send OK. Если не закоментировано в настройках пользователя, то не может: ftp 192.168.100.103 Connected to 192.168.100.103 (192.168.100.103). 220 (vsFTPd 2.0.5) Name (192.168.100.103:root): di 331 Please specify the password. Password: 500 OOPS: unrecognised variable in config file: local_root Login failed. 421 Service not available, remote server has closed connection ftp> dir Not connected. При этом в man vsftpd.conf сказано: local_root This option represents a directory which vsftpd will try to change into after a local (i.e. non- anonymous) login. Failure is silently ignored. Default: (none) Вопрос: Почему он не распознает задокументированную опцию. И как тогда его заставить работать с папкой по моему выбору? [-- Attachment #2: vsftpd.conf --] [-- Type: text/plain, Size: 202 bytes --] anonymous_enable=NO local_enable=YES write_enable=YES dirmessage_enable=YES xferlog_enable=YES connect_from_port_20=YES #local_root = /var/www/apache2/html user_config_dir=/etc/vsftpd/user_conf
next reply other threads:[~2007-11-27 17:55 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-11-27 17:55 Денис Ягофаров [this message] 2007-11-27 19:52 ` Хихин Руслан 2007-11-27 20:39 ` Di 2007-11-27 21:02 ` Dmitry V. Levin 2007-11-27 22:27 ` Di
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=474C5A14.4020608@rambler.ru \ --to=denyago@rambler.ru \ --cc=sysadmins@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux sysadmins discussion This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \ sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com public-inbox-index sysadmins Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sysadmins AGPL code for this site: git clone https://public-inbox.org/public-inbox.git