Bug 1302711 - user 'ftp': directory '/var/ftp' does not exist
user 'ftp': directory '/var/ftp' does not exist
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: filesystem (Show other bugs)
rawhide
Unspecified Unspecified
unspecified Severity low
: ---
: ---
Assigned To: Ondrej Vasik
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-01-28 07:33 EST by DaveG
Modified: 2016-01-29 11:29 EST (History)
2 users (show)

See Also:
Fixed In Version: filesystem-3.2-36.fc24
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-01-29 11:29:44 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description DaveG 2016-01-28 07:33:16 EST
Description of problem:

Minor niggle!

Package 'setup' installs a basic /etc/passwd file, populated with common system/daemon user entries, but does not provide all their home directories.


Version-Release number of selected component (if applicable):

Historical through rawhide.


How reproducible:

Always.


Steps to Reproduce:
1. Minimal install.
2. Log in.
3. run pwck


Actual results:

user 'ftp': directory '/var/ftp' does not exist


Expected results:

No errors or warnings.


Additional info:

May need to check FTP server packages to check if any claim /var/ftp or create the user account themselves.

Either the ftp account should be removed from the passwd file (https://git.fedorahosted.org/cgit/setup.git/tree/passwd) or the directory should be created and owned by the setup package.
Comment 1 DaveG 2016-01-28 07:46:36 EST
A quick check of FTP server packages (vsftp and proftp): They expect the UID (ftp) to exist and install/claim /var/ftp. e.g.

%{_var}/ftp
  or
%dir %{_localstatedir}/ftp/
  using default attributes (0755 root:root).

So, removing the UID from the setup passwd file would require changes in all FTP server packages.

Please consider adding directory /var/ftp to the package.

--Dave G.
Comment 2 Ondrej Vasik 2016-01-29 11:24:58 EST
I would prefer this directory owned by filesystem package (I maintain this one as well, so it is more cosmetic thing). All of the other home directories for accounts owned by setup are created by this package.
Comment 3 Ondrej Vasik 2016-01-29 11:29:44 EST
Built as filesystem-3.2-36.fc24 in rawhide.

Note You need to log in before you can comment on or make changes to this bug.