Bug 1398793

Summary: useradd creates /1
Product: [Fedora] Fedora Reporter: Jerry James <loganjerry>
Component: shadow-utilsAssignee: Tomas Mraz <tmraz>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 25CC: pvrabec, tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-02 08:56:32 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:

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.