Bug 7660
Summary: | useradd -p enters plain text password | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Adi Linden <adi> |
Component: | shadow-utils | Assignee: | Bernhard Rosenkraenzer <bero> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.1 | ||
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: | 1999-12-08 15:15: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
Adi Linden
1999-12-07 19:34:57 UTC
useradd -p takes the *encrypted* password as parameter. Allowing to specify cleartext passwords in the command line would not be a very good idea (anyone can read it, and it remains in .bash_history). If you absolutely need that function, use something along the lines of useradd -p `echo 'print crypt("password", "RH");' | perl` username |