Bug 66844

Summary: The option "-p"in the useradd tool didn`t encrypt the password
Product: [Retired] Red Hat Linux Reporter: Thiago Dourado <tdourado>
Component: shadow-utilsAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: teg
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: 2002-06-17 18:21:45 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 Thiago Dourado 2002-06-17 17:55:42 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; TUCOWS)

Description of problem:
When I use de option -p with que useradd tool the password field in the shadow 
file is not encryted and the user could not login before the administrator 
change the password

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.# useradd danielad -p daniela123 -G wheel -c "Daniela Daros -- EBSD"
2. # more /etc/passwd | grep danielad
> danielad:x:509:510:Daniela Daros -- EBSD:/home/danielad:/bin/bash
3.# more /etc/shadow | grep danielad
> danielad:daniela123:11850:0:186:7:::
	

Additional info:

Comment 1 Trond Eivind Glomsrxd 2002-06-17 18:21:38 UTC
The man page clearly states that "-p" is for the encrypted password, not a
plaintext one.

Also, useradd is not part of the unarj package.