- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Password Changes
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
04-27-2004 02:36 AM
04-27-2004 02:36 AM
Password Changes
I am trying to figure out how I can change my indivdual password on different boxes. The change is only for my user ID. Expect is not available so I cannot use expect. Anything with Perl or Unix shell script. I should be able to give the box name , login id , my old password and new password. This should then go ahead and change the password at the remote box.
Something like this...
changepassword
Thanks for any help.
Thanks and Regards
Nand Kishore S
- Tags:
- Password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2004 02:41 AM
04-27-2004 02:41 AM
Re: Password Changes
Regards
Scott Palmer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2004 02:44 AM
04-27-2004 02:44 AM
Re: Password Changes
# changepassword
ssh root@$1 "/usr/contrib/bin/changepw $2 $3 $4"
on the target box
changepw
passwd $1 << EOF
$3
$3
EOF
note that the target script has the $ variables one less than the original script because a script is calling a script.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2004 02:51 AM
04-27-2004 02:51 AM
Re: Password Changes
Enable rlogin/remsh - .rhosts file.
The crude method could as follows.
Beware this echoes the password in clear text.
remsh host "/usr/sam/lbin/usermod.sam -p "`echo 1234abcd|/usr/lbin/makekey`" user_name
Do this for all hosts you want. You password is "1234abcd"
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2004 03:19 AM
04-27-2004 03:19 AM
Re: Password Changes
You are right. I am not root. Also I dont have expect installed on the box but I have access to C , Perl and normal shells are always available.
Wanted to know if anything is possible with these langauges.
Thanks for the info.
Thanks and Regards
Nand Kishore S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2004 11:37 PM
04-27-2004 11:37 PM
Re: Password Changes
Steven:
I have already tried the here statement solution(i mean <
nandan kisore:
You can try what steven has suggested.Though i'am not 100% sure of the desired result.I will work on system calls using C (pipe,fork,dup) ,basically try to work on standard file descriptions.I doubt i can comeup with a solution,but,I strongly feel its worth a shot.If it works i will get back to you.
regards
Senthil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2004 11:56 PM
04-27-2004 11:56 PM
Re: Password Changes
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2004 05:36 AM
04-28-2004 05:36 AM
Re: Password Changes
Eureka,yes thats the word i require to express my excitment.I have used some system calls in my c program & with appropiate manupulation of file descriptor links with the help of pipe(),fork(),dup() and using execl() call to execute the required executable, i was successful in issuing the my custom made command to execute successfully with the passwords given to the it at the command prompt itself.
Now i understand that u do not have root permission.But i assume that u have login/password for the remote machines.In that case you can execute the command i give you with the help of remsh command.Firstly I need some details from you to complete the program.
1)model of your servers.(model command).
2)Type of executable.especially your /usr/bin/passwd file .run "file /usr/bin/passwd".
If you can furnish these details I will compile the program that can be run on your servers.
regards
Senthil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2004 07:09 PM
04-28-2004 07:09 PM