|
ru.unix.bsd- RU.UNIX.BSD ------------------------------------------------------------------ From : Rostislav Podgorniy 2:4635/83.1 13 Jan 2005 21:40:22 To : All Subject : ftpchroot -------------------------------------------------------------------------------- 5. If the user name appears in the file /etc/ftpchroot, or the user is a member of a group with a group entry in this file, i.e. one prefixed with `@', the session's root will be changed to the directory specified in this file or to the user's login directory by chroot(2) as for an ``anonymous'' or ``ftp'' account (see next item). See ftpchroot(5) for a detailed description of the format of this file. This facility may also be triggered by enabling the boolean "ftp-chroot" capa- bility in login.conf(5). However, the user must still supply a password. This feature is intended as a compromise between a fully anonymous account and a fully privileged account. The account should also be set up as for an anonymous account. Указание в /etc/ftpchroot pаботает, а указание в /etc/login.conf не хотит. Делаю так: default:\ :passwd_format=md5:\ :copyright=/etc/COPYRIGHT:\ :welcome=/etc/motd:\ :setenv=MAIL=/var/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES:\ :path=/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/loca l/bin /usr/X11R6/bin ~/bin:\ :nologin=/var/run/nologin:\ :cputime=unlimited:\ :datasize=unlimited:\ :stacksize=unlimited:\ :memorylocked=unlimited:\ :memoryuse=unlimited:\ :filesize=unlimited:\ :coredumpsize=unlimited:\ :openfiles=unlimited:\ :maxproc=unlimited:\ :sbsize=unlimited:\ :vmemoryuse=unlimited:\ :priority=0:\ :ignoretime@:\ :umask=022:\ :ftp-chroot=1: -- WBR, Rostislav Podgorniy rostislav[@]podgorniy.com icq #709057 ... Обналичим Hобелевскую премию. --- GoldED+ 1.1.4.7 (WinNT 5.1.2600-Service_Pack_2 i686) * Origin: MailSMS.net - Service for cellular phones owners (2:4635/83.1) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.unix.bsd/277941e6c122.html, оценка из 5, голосов 10
|