- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Need to change passwd.
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
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
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
08-27-2008 01:54 AM
08-27-2008 01:54 AM
I want to change one user passwd. So, I login as a root and tried to change the passwd.
After issue the command "passwd user1" , Its asking old passwd. But I dont know the old passwd.
I found below command for this case.
passwd -r file user1
May I know whats mean file in above command?
Could any one tell how to see the passwd of one user account? I can't see paswd in /etc/passwd as its encrypted one.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2008 01:57 AM
08-27-2008 01:57 AM
Re: Need to change passwd.
/usr/lbin/modprpw -x username
If you r doing from root login then it will not ask you the old password of the user.
Thanks
SKR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2008 02:37 AM
08-27-2008 02:37 AM
Re: Need to change passwd.
First
You can check ur system is in trusted mode or not by using
#cat /etc/passwd | awk -F: '{print $2}'
the output of the above command will be * only.
Regards
Atul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2008 02:43 AM
08-27-2008 02:43 AM
Re: Need to change passwd.
If your system in trusted mode then and then only u can change the passwd by using below command
#/usr/lbin/modprpw -x username
Regards
Atul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2008 02:58 AM
08-27-2008 02:58 AM
Re: Need to change passwd.
if it does you can remove the encripted string form
/etc/shadow
or
/etc/passwd
or
/tcb/files/auth/*/[username]
after removing the string whe user does not have a passwd anny more and you are able to set the passed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2008 03:01 AM
08-27-2008 03:01 AM
Re: Need to change passwd.
Athulkuamr, I cheked /etc/passwd file,Its showing some * and other also.
kegrU4amxxxxx
*
*
*
*
ipcMk1wxxxxxx.
For this case, Can I use below command ?
/usr/lbin/modprpw -x username (Does "x" mean password)
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2008 03:13 AM
08-27-2008 03:13 AM
Re: Need to change passwd.
x is the switch.
U can use the command which i have suggested.U can check the manpages for modprpw. Check regarding x switch.
Regards
Atul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2008 03:23 AM
08-27-2008 03:23 AM
Re: Need to change passwd.
You got the point.ur problem solved or not
Regards
Atul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2008 03:47 AM
08-27-2008 03:47 AM
Re: Need to change passwd.
Athul, Once I issue the command, its showing System is not trusted. am not able to change it.
Verschuren, Not able to see the /etc/shadow file, But I can change passwd in file /etc/passwd. Its fine now.
Thank a lot Athul and Verschuren.
Need to know more information,
1.How to see the passwd of one user?
2.passwd -r file user1 (what does mean file)
3.Is any other command there to change the passwd?
Thank
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2008 07:53 PM
08-27-2008 07:53 PM
Re: Need to change passwd.
Pls assign the point as per itrc forum.People spending their valuable time for answering.So assign the points and keep in touch with itrc .
Regards
Atul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2008 09:06 PM
08-27-2008 09:06 PM
Solutionlong discussion is already goin on here..
>>>
Need to know more information,
1.How to see the passwd of one user?
2.passwd -r file user1 (what does mean file)
3.Is any other command there to change the passwd?
>>>>
see urs is not a trusted system so commands like modprpw will not be helpful for you.
It is not possible for root to see password of any user. Only user can tell who actually set it...
If you really want to reset the password for a user then easy way is to use SAM.
Go to user and group management and select user name and choose reset password from action menu...
Another one is from command line:
## passwd
new password: *****
confirm password:*****
thats it!!
For your another query:::
what is passwd -r file user1 ???
refer to man passwd for complete details!!
I hope this will answer all your queries!!
Deepak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2008 09:10 PM
08-27-2008 09:10 PM
Re: Need to change passwd.
http://unixhelp.ed.ac.uk/CGI/man-cgi?passwd+1
-r, --repository REPOSITORY
change password in REPOSITORY repository
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2008 12:43 AM
08-28-2008 12:43 AM
Re: Need to change passwd.
Thank you all to spend valuable time for answering my queries.