Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
logiciel:internet:ftp:vsftpd:faq:start [2020/12/15 09:40] – ↷ Page déplacée de logiciel:internet:vsftpd:faq:start à logiciel:internet:ftp:vsftpd:faq:start admin | logiciel:internet:ftp:vsftpd:faq:start [2022/08/13 22:27] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 4: | Ligne 4: | ||
~~FAQ~~ | ~~FAQ~~ | ||
- | + | | |
- | ??? Puis-je restreindre les utilisateurs à leur répertoire HOME ? | + | |
!!! Oui. Sans doute en utilisant :< | !!! Oui. Sans doute en utilisant :< | ||
- | + | | |
- | ??? Pourquoi les liens symboliques ne fonctionnent-ils pas avec chroot_local_user=YES ? | + | |
!!! C'est une conséquence du fonctionnement de la sécurité de chroot() . | !!! C'est une conséquence du fonctionnement de la sécurité de chroot() . | ||
Comme alternative, | Comme alternative, | ||
- | + | | |
- | ??? vsftpd peut-il limiter le nombre d' | + | |
!!! Oui, indirectement. vsftpd est un service basé sur inetd. | !!! Oui, indirectement. vsftpd est un service basé sur inetd. | ||
Si vous utilisez le populaire " | Si vous utilisez le populaire " | ||
Ligne 18: | Ligne 15: | ||
Si vous exécutez vsftpd en mode " | Si vous exécutez vsftpd en mode " | ||
- | + | | |
- | ??? message d' | + | |
!!! vsftpd se protège contre les configurations dangereuses. La cause de ce message est généralement une appartenance douteuse du répertoire home du ftp. Le répertoire home ne doit PAS être possédé par l' | !!! vsftpd se protège contre les configurations dangereuses. La cause de ce message est généralement une appartenance douteuse du répertoire home du ftp. Le répertoire home ne doit PAS être possédé par l' | ||
- | + | | |
- | ??? Help! I'm getting the error message " | + | |
!!! The most likely cause of this is that the user that is configured as the ' | !!! The most likely cause of this is that the user that is configured as the ' | ||
- | + | | |
- | ??? Help! Local users cannot log in. | + | |
!!! There are various possible problems. | !!! There are various possible problems. | ||
!!! By default, vsftpd disables any logins other than anonymous logins. Put local_enable=YES in your / | !!! By default, vsftpd disables any logins other than anonymous logins. Put local_enable=YES in your / | ||
Ligne 31: | Ligne 25: | ||
!!! If vsftpd didn't link with PAM, then there are various possible issues. Is the user's shell in / | !!! If vsftpd didn't link with PAM, then there are various possible issues. Is the user's shell in / | ||
!!! If you are not using PAM, then vsftpd will do its own check for a valid user shell in / | !!! If you are not using PAM, then vsftpd will do its own check for a valid user shell in / | ||
- | + | | |
- | ??? Help! Uploads or other write commands give me "500 Unknown command." | + | |
!!! By default, write commands, including uploads and new directories, | !!! By default, write commands, including uploads and new directories, | ||
- | + | | |
- | ??? Help! What are the security implications referred to in the " | + | |
!!! Firstly note that other ftp daemons have the same implications. It is a generic problem. The problem isn't too severe, but it is this: Some people have FTP user accounts which are not trusted to have full shell access. If these accounts can also upload files, there is a small risk. A bad user now has control of the filesystem root, which is their home directory. The ftp daemon might cause some config file to be read - e.g. / | !!! Firstly note that other ftp daemons have the same implications. It is a generic problem. The problem isn't too severe, but it is this: Some people have FTP user accounts which are not trusted to have full shell access. If these accounts can also upload files, there is a small risk. A bad user now has control of the filesystem root, which is their home directory. The ftp daemon might cause some config file to be read - e.g. / | ||
- | + | | |
- | ??? Help! Uploaded files are appearing with permissions -rw-------. | + | |
!!! Depending on if this is an upload by a local user or an anonymous user, use " | !!! Depending on if this is an upload by a local user or an anonymous user, use " | ||
!!! Also see the vsftpd.conf.5 man page for the new " | !!! Also see the vsftpd.conf.5 man page for the new " | ||
- | + | | |
- | ??? Help! How do I integrate with LDAP users and logins? | + | |
!!! Use vsftpd' | !!! Use vsftpd' | ||
- | + | | |
- | ??? Help! Does vsftpd do virtual hosting setups? | + | |
!!! Yes. If you integrate vsftpd with xinetd, you can use xinetd to bind to several different IP addresses. For each IP address, get xinetd to launch vsftpd with a different config file. This way, you can get different behaviour per virtual address. | !!! Yes. If you integrate vsftpd with xinetd, you can use xinetd to bind to several different IP addresses. For each IP address, get xinetd to launch vsftpd with a different config file. This way, you can get different behaviour per virtual address. | ||
!!! Alternatively, | !!! Alternatively, | ||
- | + | | |
- | ??? Help! Does vsftpd support virtual users? | + | |
!!! Yes, via PAM integration. Set " | !!! Yes, via PAM integration. Set " | ||
Note - currently there is a restriction that with guest_enable enabled, local users also get mapped to guest_username. There is an example of virtual users setup in the " | Note - currently there is a restriction that with guest_enable enabled, local users also get mapped to guest_username. There is an example of virtual users setup in the " | ||
- | + | | |
- | ??? Vsftpd prend-il en charge différents paramètres pour différents utilisateurs ? | + | |
!!! Oui - d'une manière très puissante. Regardez le paramètre " | !!! Oui - d'une manière très puissante. Regardez le paramètre " | ||
- | + | | |
- | ??? Help! Can I restrict vsftpd data connections to a specific range of ports? | + | |
!!! Yes. See the config settings " | !!! Yes. See the config settings " | ||
- | + | | |
- | ??? Je reçois le message "OOPS: chdir" | + | |
!!! S'il s'agit d'une connexion anonyme, vérifiez que le répertoire personnel de l' | !!! S'il s'agit d'une connexion anonyme, vérifiez que le répertoire personnel de l' | ||
- | + | | |
- | ??? Help! vsftpd is reporting times as GMT times and not local times! | + | |
!!! This behaviour can be changed with the setting " | !!! This behaviour can be changed with the setting " | ||
- | + | | |
- | ??? Help! Can I disable certain FTP commands? | + | |
!!! Yes. There are some individual settings (e.g. dirlist_enable) or you can specify a complete set of allowed commands with " | !!! Yes. There are some individual settings (e.g. dirlist_enable) or you can specify a complete set of allowed commands with " | ||
- | + | | |
- | ??? Help! Can I change the port that vsftpd runs on? | + | |
!!! Yes. If you are running vsftpd in standalone mode, use the " | !!! Yes. If you are running vsftpd in standalone mode, use the " | ||
!!! Yes. If you are running vsftpd from an inetd or xinetd program, this becomes an inetd or xinetd problem. You must change the inetd or xinetd configuration files (perhaps / | !!! Yes. If you are running vsftpd from an inetd or xinetd program, this becomes an inetd or xinetd problem. You must change the inetd or xinetd configuration files (perhaps / | ||
- | + | | |
- | ??? Help! Will vsftpd authenticate against an LDAP server? What about a MySQL server? | + | |
!!! Yes. vsftpd uses PAM for authentication, | !!! Yes. vsftpd uses PAM for authentication, | ||
- | + | | |
- | ??? Help! Does vsftpd support per-IP limits? | + | |
!!! Yes. If you are running vsftpd standalone, there is a " | !!! Yes. If you are running vsftpd standalone, there is a " | ||
!!! Yes. If you are running vsftpd via xinetd, there is an xinetd config variable " | !!! Yes. If you are running vsftpd via xinetd, there is an xinetd config variable " | ||
- | + | | |
- | ??? Help! Does vsftpd support bandwidth limiting? | + | |
!!! Yes. See vsftpd.conf.5 man page and investigate settings such as " | !!! Yes. See vsftpd.conf.5 man page and investigate settings such as " | ||
- | + | | |
- | ??? Help! Does vsftpd support IP-based access control? | + | |
!!! Yes. vsftpd can integrate with tcp_wrappers (if built with this support). It is enabled with the setting " | !!! Yes. vsftpd can integrate with tcp_wrappers (if built with this support). It is enabled with the setting " | ||
!!! Yes. vsftpd can be run from xinetd, which supports tcp_wrappers integration. | !!! Yes. vsftpd can be run from xinetd, which supports tcp_wrappers integration. | ||
- | + | | |
- | ??? Help! Does vsftpd support IPv6? | + | |
!!! Yes, as of version 1.2.0. Read the vsftpd.conf.5 man page. | !!! Yes, as of version 1.2.0. Read the vsftpd.conf.5 man page. | ||
- | + | | |
- | ??? Help! vsftpd doesn' | + | |
!!! Install the libcap package and retry the build. Seems to affect Debian users a lot. | !!! Install the libcap package and retry the build. Seems to affect Debian users a lot. | ||
!!! Install the libcap-devel. This certainly affects Fedora. | !!! Install the libcap-devel. This certainly affects Fedora. | ||
- | + | | |
- | ??? Help! I've put settings in / | + | |
!!! This is affecting some RedHat users - some RedHat versions put the config file in / | !!! This is affecting some RedHat users - some RedHat versions put the config file in / | ||
- | + | | |
- | ??? Help! vsftpd doesn' | + | |
!!! Your system probably doesn' | !!! Your system probably doesn' | ||
- | + | | |
- | ??? Help! I'm getting messages along the lines of 500 OOPS: vsf_sysutil_bind when trying to do downloads (particularly lots of small files). | + | |
!!! vsftpd-1.2.1 should sort this out. | !!! vsftpd-1.2.1 should sort this out. | ||
- | + | | |
- | ??? Help! Does vsftpd support hiding or denying certain files? | + | |
!!! Yes. Look at the hide_file and deny_file options in the manual page. | !!! Yes. Look at the hide_file and deny_file options in the manual page. | ||
- | + | | |
- | ??? Help! Does vsftpd support FXP? | + | |
!!! Yes. An FTP server does not have to do anything special to support FXP. However, you many get tripped up by vsftpd' | !!! Yes. An FTP server does not have to do anything special to support FXP. However, you many get tripped up by vsftpd' | ||
- | + | | |
- | ??? Help! I'm getting the error "426 Failure writing network stream." | + | |
!!! You shouldn' | !!! You shouldn' | ||
- | + | | |
- | ??? Help! I'm using the pam_userdb login module and the login hangs. | + | |
!!! This could be a bad interaction with glibc version 2.3 and PAM. A Debian user reported this. The initial report is here: http:// | !!! This could be a bad interaction with glibc version 2.3 and PAM. A Debian user reported this. The initial report is here: http:// | ||
- | + | | |
- | ??? Help! Does vsftpd support large files (>2Gb?). | + | |
!!! Yes, it does. | !!! Yes, it does. | ||
- | + | | |
- | ??? Help! Well, large file support doesn' | + | |
!!! Large file support first appeared in v1.1.0. | !!! Large file support first appeared in v1.1.0. | ||
!!! Solaris large file support wasn't fixed until v1.2.2. | !!! Solaris large file support wasn't fixed until v1.2.2. | ||
Ligne 123: | Ligne 90: | ||
!!! The early Linux 2.6 kernels had a bug in this area - use v2.6.6 or newer. | !!! The early Linux 2.6 kernels had a bug in this area - use v2.6.6 or newer. | ||
!!! Are you sure your FTP _client_ correctly supports large files? | !!! Are you sure your FTP _client_ correctly supports large files? | ||
- | + | | |
- | ??? Help! The built-in vsftpd listener is hanging or crashing! | + | |
!!! A bug in this area is fixed in vsftpd v1.2.2. The problem has always existed but seems to frequently trigger only on certain platforms. For example, Fedora Core 1 - the suspected trigger is a glibc-2.3 platform, possibly in combination with a NPTL-enabled kernel. | !!! A bug in this area is fixed in vsftpd v1.2.2. The problem has always existed but seems to frequently trigger only on certain platforms. For example, Fedora Core 1 - the suspected trigger is a glibc-2.3 platform, possibly in combination with a NPTL-enabled kernel. | ||
- | + | | |
- | ??? Help! I'm using Solaris / Veritas and vsftpd is hanging! | + | |
!!! Suspected bug with the Solaris / Veritas combination. With vsftpd-1.2.3 there is a possible workaround: no_log_lock=YES in your vsftpd.conf.5. | !!! Suspected bug with the Solaris / Veritas combination. With vsftpd-1.2.3 there is a possible workaround: no_log_lock=YES in your vsftpd.conf.5. | ||
- | + | | |
- | ??? Does vsftpd support SSL / TLS based encryption? | + | |
!!! Yes, as of v2.0.0, this is supported for the control and data connections (hurrah). You need a build of vsftpd with this support enabled, and then you need to activate the ssl_enable setting. NOTE there are security considerations with this support. Please make sure to read the ssl_enable section in the vsftpd.conf.5 man page thoroughly before using. | !!! Yes, as of v2.0.0, this is supported for the control and data connections (hurrah). You need a build of vsftpd with this support enabled, and then you need to activate the ssl_enable setting. NOTE there are security considerations with this support. Please make sure to read the ssl_enable section in the vsftpd.conf.5 man page thoroughly before using. | ||
- | + | | |
- | ??? Help! I'm using FlashFXP and getting truncated files on download. | + | |
!!! FlashFXP is buggy - particularly with SSL transfers. Upgrade to v3.0RC4 or newer, which is reported to be fixed. | !!! FlashFXP is buggy - particularly with SSL transfers. Upgrade to v3.0RC4 or newer, which is reported to be fixed. | ||
- | + | | |
- | ??? Help! I'm trying to build vsftpd, and I get an error along the lines of " | + | |
!!! Yes, seems to be a problem with some RedHat setups. See http:// | !!! Yes, seems to be a problem with some RedHat setups. See http:// | ||
- | + | | |
- | ??? Help! I'm getting the error "OOPS: capset" | + | |
!!! This is an issue with SELinux enabled distributions. The solution is to make sure the capability kernel module is loaded. | !!! This is an issue with SELinux enabled distributions. The solution is to make sure the capability kernel module is loaded. | ||
- | + | | |
- | ??? Help! I'm getting the error "ftp: netin: Interrupted system call". | + | |
!!! Seems to be a bug in ftp-tls, particularly with SSL transfers with bandwidth limiting in effect. | !!! Seems to be a bug in ftp-tls, particularly with SSL transfers with bandwidth limiting in effect. | ||
- | + | | |
- | ??? Help! When trying SSL transfers, users log in and are no longer restricted to their home directory! They can browse the entire filesystem! | + | |
!!! Most likely, your FTP client is in fact using the SSH protocol rather than the FTP protocol - so sshd is in control and not vsftpd! | !!! Most likely, your FTP client is in fact using the SSH protocol rather than the FTP protocol - so sshd is in control and not vsftpd! | ||
!!! Of course, make sure you turn on the chroot_local_user option!! | !!! Of course, make sure you turn on the chroot_local_user option!! | ||
- | + | | |
- | ??? Help! I'm getting connections dropped whilst using gFTP for an SSL | + | |
!!! The version of gFTP on my Fedora Core 10 installation appears to send the " | !!! The version of gFTP on my Fedora Core 10 installation appears to send the " | ||
- | + | | |
- | ??? Help! SSL data connections are not working. | + | |
!!! As of v2.1.0, vsftpd only accepts data connections that are reused sessions of the control connection. This is a security measure. Unfortunately, | !!! As of v2.1.0, vsftpd only accepts data connections that are reused sessions of the control connection. This is a security measure. Unfortunately, | ||
- | + | | |
- | ??? Help! My LDAP / mysql / etc. authentication and / or username lookup are failing! | + | |
!!! As of v2.2.0, the built-in sandboxing uses network isolation on Linux. This may be interfering with any module that needs to use the network to perform operations or lookups. Try changing isolate_network to NO. | !!! As of v2.2.0, the built-in sandboxing uses network isolation on Linux. This may be interfering with any module that needs to use the network to perform operations or lookups. Try changing isolate_network to NO. | ||