Opened 13 years ago
Closed 13 years ago
#4721 closed defect (fixed)
vsftpd-3.0.2 uses non-FHS compliant directory
| Reported by: | Armin K | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.5 |
| Component: | BOOK | Version: | SVN |
| Severity: | medium | Keywords: | |
| Cc: |
Description
/var/ftp isn't a directory specified by FHS. This should be moved somewhere else, like /var/lib/ftp or /var/cache/ftp.
Change History (9)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
I don't know, it's empty.
I see it's mentioned in the configuration file though.
secure_chroot_dir=/var/ftp/empty
comment:3 by , 13 years ago
OK. How about using /var/tmp/ftp? That contains temporary but persistent files. My second choice is /var/cache/ftp.
comment:4 by , 13 years ago
/var/tmp and /tmp are for temporary files/directories. And this isn't a temporary file/directory.
comment:5 by , 13 years ago
| Milestone: | 7.6 → 7.5 |
|---|---|
| Owner: | changed from to |
| Status: | new → assigned |
comment:6 by , 13 years ago
| Owner: | changed from to |
|---|---|
| Status: | assigned → new |
comment:7 by , 13 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:8 by , 13 years ago
The default directory is /usr/share/empty.
"This option should be the name of a directory which is empty. Also, the directory should not be writable by the ftp user. This directory is used as a secure chroot() jail at times vsftpd does not require filesystem access."
How about using /usr/share/vsftpd/empty With permissions 755 root:root?

I haven't noticed this before. What's the nature of the data in /var/ftp?