- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Changing password on HPUX without asking for passw...
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
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
тАО09-11-2004 11:41 AM
тАО09-11-2004 11:41 AM
Thanks
Ram
Solved! Go to Solution.
- Tags:
- Password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2004 12:00 PM
тАО09-11-2004 12:00 PM
SolutionAll you have to do is to run the '/usr/sam/lbin/usermod.sam -p
If you have any management software like Openview/Tivoli, you can take it's help to run this small script. Or if you have already setup ssh public keys also you can do it. If you don't have any of them, then you can crate '.netrc' file and use rexec. But that's the *most insecured* way and attempt only if you don't have any choice. Remove .netrc file once the task is done.
-Sri
- Tags:
- usermod.sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2004 06:30 PM - last edited on тАО06-14-2023 01:53 AM by Sunitha_Mod
тАО09-11-2004 06:30 PM - last edited on тАО06-14-2023 01:53 AM by Sunitha_Mod
Re: Changing password on HPUX without asking for password
I don't have a perl script for this, but I wrote several scripts to do something similar a few years back on both trusted and non trusted systems. I don't have them anymore, but this is what I did.
Make backups of your passwd file prior to trying anything.
For the trusted system, I used sed on all files in /tcb/files/auth/*/* to pull anything in the file between :u_pwd=
I inserted a new pass right there. It globally replaced hundreds in a matter of seconds.
On the non-trusted system, I did something similar but with the /etc/passwd file.
I found this thread that has your answer:http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=29293
[Moderator edit: The above link is no longer valid.]
Good luck.
-Brian.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2004 07:08 PM
тАО09-11-2004 07:08 PM
Re: Changing password on HPUX without asking for password
We are using r* commands on rlogin on 100's of internal machine's without passwd.
For users make setup as,
-- /etc/hosts.equiv ---
+ testusr
or
+ root
On every machine so that it will access to that user login with passwd.
If you are using trusted system's then you have to give supported to the rlogind
And more you have you have to have rlogind to support r* commands
Note: r* commands are non-secure. You can use s* (sshd) commands to get secure on this.
If you want to make user's without using r* / s* setup then make user's passwd information on sam as "Allow null passwd"
It will not ask passwd or simply delete the passwd entry on /etc/passwd file of user ( on non-trusted mode only )
Like,
user::