Opened 8 years ago

Closed 8 years ago

#4721 closed defect (fixed)

vsftpd-3.0.2 uses non-FHS compliant directory

Reported by: Armin K Owned by: bdubbs@…
Priority: normal Milestone: 7.5
Component: BOOK Version: SVN
Severity: normal 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 bdubbs@…, 8 years ago

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

comment:2 by Armin K, 8 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 bdubbs@…, 8 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 Armin K, 8 years ago

/var/tmp and /tmp are for temporary files/directories. And this isn't a temporary file/directory.

comment:5 by Igor Živković, 8 years ago

Milestone: 7.67.5
Owner: changed from blfs-book@… to Igor Živković
Status: newassigned

comment:6 by Igor Živković, 8 years ago

Owner: changed from Igor Živković to blfs-book@…
Status: assignednew

comment:7 by bdubbs@…, 8 years ago

Owner: changed from blfs-book@… to bdubbs@…
Status: newassigned

comment:8 by bdubbs@…, 8 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?

comment:9 by bdubbs@…, 8 years ago

Resolution: fixed
Status: assignedclosed

Fixed at revision 12805.

Note: See TracTickets for help on using tickets.