НеУчаcтник+


Зарегистрирован: Mar 2002
Место проживания:
Публикаций: 270
Статус:  |
Читайте маны и источники
quote:
Preparing the Anonymous FTP Area
Create the anonymous FTP hierarchy. Most of the time you will just use the home directory for the ftp user, but you do not have to use that directory. No matter what directory you choose, we will denote the anonymous FTP hierarchy as ~ftp.
The ~ftp directory should not be owned by ftp, but by root and have mode 755 (drwxr-xr-x). Any subdirectories you don't want people removing should not be owned by the ftp user.
That is usually all that NcFTPd requires of the ~ftp hierarchy. Other FTP servers require a ~ftp/bin/ls and a ~ftp/etc/passwd, libraries, etctera, but NcFTPd does not need those.
Copy files and directories you want accessible to the outside world into the anonymous FTP hierarchy. Avoid using symbolic links because the server does a chroot to the ~ftp directory, and if a link points outside of the anonymous tree the link will be invalid.
Configuration File Options
To enable anonymous user logins, you need to have NcFTPd configured so that the domain.cf option server-type is set to all-users (if you want both anonymous and non-anonymous users) or anonymous-only. Like all domain.cf options, this should be set appropriately for each domain in the domain.cf file.
Another domain.cf option that can be set is ftp-home. The default directory tree that is used when a user logs in anonymously is the ftp user's home directory, but if you have multiple domains in your domain.cf file you can use this option to have each domain have a different anonymous FTP root, rather than sharing the same directory tree for all domains.
The general.cf option a-write-permission option specifies whether anonymous users can create, modify, or delete files in the anonymous FTP area. If this option is enabled, then users will be denied no matter what the permissions on the files and directories are (with one exception, mentioned next). By default, this option is set to no for security reasons, because generally it is a system administration error if anonymous users can make modifications.
http://www.ncftpd.com/ncftpd/doc/
Сообщить модератору об этом сообщении | Предупреждение | IP: определен
|