Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 23872

Summary: Command useradd's -m flag has faulty operation
Product: [Retired] Red Hat Linux Reporter: Need Real Name <sh>
Component: shadow-utilsAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED WORKSFORME QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: low    
Version: 6.2CC: sh
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-01-25 02:27:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Need Real Name 2001-01-12 14:50:56 UTC
As far as I can see useradd has a new behavior in 6.2. The -m flag normally
has to be given to ensure that a new directory is created, but without or
without the flag in 6.2, a new directory is created, which is somewhat
anoying.

Comment 1 Nalin Dahyabhai 2001-01-25 02:27:55 UTC
Please Check the setting of the CREATE_HOME flag in /etc/login.defs,
which specifies the default behavior for useradd.

Comment 2 Brent Fox 2002-06-05 03:03:01 UTC
Just checking with 7.3, the default behavior is to create the directory, and
this is specified in /etc/login.defs.  Changing the behavior to "no" does the
right thing.  Closing as 'worksforme'