- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to change password using usermod
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
Forums
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
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
тАО11-25-2007 02:52 AM
тАО11-25-2007 02:52 AM
how to give an crypt password for "usermod -p" such that i can change the password for the given user
thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2007 03:41 AM
тАО11-25-2007 03:41 AM
Re: how to change password using usermod
assume that you will change user user1 and password will be pass1
crypt pass1 | read newpass
usermod ${newpass} user1
or
usermod `crypt pass1` user1
Hasan.
please assign points.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2007 04:59 AM
тАО11-25-2007 04:59 AM
Re: how to change password using usermod
can you give me the correct syntax for that command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2007 05:15 AM
тАО11-25-2007 05:15 AM
Re: how to change password using usermod
I forgot to write -p option.
usermod -p `crypt pass1` user1
hASAN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2007 06:52 AM
тАО11-25-2007 06:52 AM
Re: how to change password using usermod
$ prompt
bash-3.2# usermod -p `crypt pass1` aa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2007 08:32 PM
тАО11-25-2007 08:32 PM
Re: how to change password using usermod
/usr/sam/lbin/usermod.sam -p "3dt14Ul7TWS.U" username
regards,
Kasper
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2007 04:30 AM
тАО11-26-2007 04:30 AM
Re: how to change password using usermod
the key for encryption must match the key of the system?
if i use this
usermod -p
then the password for the user is changed
but when i used my
i am unable to log in
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2007 05:02 AM
тАО11-26-2007 05:02 AM
Solution#!/usr/bin/sh
typeset -i STAT=0
typeset SALT="Q9"
typeset PLAINTEXT="secret"
typeset HASH=$(perl -e "print crypt(${PLAINTEXT},${SALT})")
STAT=${?}
echo "Password Hash = \"${HASH}\""
exit ${STAT}
Note: With a little more effort you could use a randomly generated salt rather than the fixed "Q9" in this example. Man 3 crypt to understand what "salt" does.