- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- How to set MD5 encrypted password for new user
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2006 08:22 PM
тАО07-25-2006 08:22 PM
But as far as I see, "useradd -p" accepts only "crypt", not MD5.
Is there another simple method to set up password for new user using MD5 hash?
(there is RHEL3 update 6)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2006 08:44 PM
тАО07-25-2006 08:44 PM
Re: How to set MD5 encrypted password for new user
useradd user1;
echo password |passwd user1 --stdin;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2006 08:56 PM
тАО07-25-2006 08:56 PM
Re: How to set MD5 encrypted password for new user
I want to use MD5 string from existing shadow file like "$1$.fdYDaVj$G8zLaaP/Eym0hkokPCnSZ0"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2006 10:13 PM
тАО07-25-2006 10:13 PM
Re: How to set MD5 encrypted password for new user
You can just add new user with any password and then just edit /etc/shadow (and it should) be OK, of course must be root to do that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2006 11:13 PM
тАО07-25-2006 11:13 PM
Re: How to set MD5 encrypted password for new user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2006 02:17 AM
тАО07-26-2006 02:17 AM
SolutionFirst you must create a file (or something you can pipe to chpasswd command) with the following structure:
...
The passwords can be encrypted or plaintext. If the passwords are already encrypted (by whatever method), you must use the -e option with the chpasswd command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2006 07:30 PM
тАО07-26-2006 07:30 PM
Re: How to set MD5 encrypted password for new user
happy sysadmin day to you and all forumers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2006 07:31 PM
тАО07-26-2006 07:31 PM