Bug 1302711

Summary: user 'ftp': directory '/var/ftp' does not exist
Product: [Fedora] Fedora Reporter: DaveG <daveg>
Component: filesystemAssignee: Ondrej Vasik <ovasik>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: rawhideCC: ovasik, pknirsch
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: filesystem-3.2-36.fc24 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-29 16:29:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description DaveG 2016-01-28 12:33:16 UTC
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 12:46:36 UTC
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 16:24:58 UTC
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 16:29:44 UTC
Built as filesystem-3.2-36.fc24 in rawhide.