Bug 1398793 - useradd creates /1
Summary: useradd creates /1
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: shadow-utils
Version: 25
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Tomas Mraz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-26 03:59 UTC by Jerry James
Modified: 2017-11-02 08:56 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-02 08:56:32 UTC
Type: Bug


Attachments (Terms of Use)

Description Jerry James 2016-11-26 03:59:04 UTC
Description of problem:
Running useradd creates a file named /1.  The file is 0 bytes long and is owned by root:root.

Version-Release number of selected component (if applicable):
shadow-utils-4.2.1-11.fc25.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Run "useradd test" from the command line
2.
3.

Actual results:
If SELinux is in enforcing mode, you will get an SELinux warning about creating the file.  Otherwise, it is created silently.

Expected results:
No weird files created in the root directory.

Additional info:

Comment 1 Tomas Mraz 2016-11-28 14:38:36 UTC
Strange but I wasn't able to reproduce the issue on fully updated Fedora 25. Even more strangely - I originally had the /1 file present in the filesystem but after deleting it it did not reappear after the 'useradd test' and there also weren't any related messages from the SELinux in audit log.


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