Bug 1302711 - user 'ftp': directory '/var/ftp' does not exist
Summary: user 'ftp': directory '/var/ftp' does not exist
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: filesystem
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Ondrej Vasik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-28 12:33 UTC by DaveG
Modified: 2016-01-29 16:29 UTC (History)
2 users (show)

Fixed In Version: filesystem-3.2-36.fc24
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-29 16:29:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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