Bug 173009

Summary: useradd will not allow -k
Product: [Fedora] Fedora Reporter: Teguh DC <dheche>
Component: shadow-utilsAssignee: Peter Vrabec <pvrabec>
Status: CLOSED NOTABUG QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 4   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-11-13 12:52:38 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 Teguh DC 2005-11-12 08:55:18 UTC
Description of problem:
If i use -k option with useradd then it will display help message and no user
created

Version-Release number of selected component (if applicable):
shadow-utils-4.0.12-5.FC4

How reproducible:
Always

Steps to Reproduce:
1. cp -r /etc/skel /etc/fooskel
2. useradd -k /etc/fooskel foo

  
Actual results:
1. display the help messages
2. no user create

Expected results:
new user created with custom skel defined

Additional info:
when i try with luseradd instead of useradd, this work perfectly

Comment 1 Peter Vrabec 2005-11-13 12:52:38 UTC
see:
man useradd
u should use:
# useradd -m -k /etc/fooskel foo