The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Using Crontab To Change User Password OdinPT UNIX for Dummies Questions & Answers 2 08-28-2007 07:09 AM
Can an FTP user change their own password? LordJezo UNIX for Dummies Questions & Answers 2 02-27-2007 10:36 AM
User password change trace pmsuper SUN Solaris 0 04-27-2006 02:13 AM
Can't change password for a user rahulrathod UNIX for Dummies Questions & Answers 2 12-08-2005 07:23 AM
Script to automatically change password. rahulrathod Shell Programming and Scripting 1 10-04-2004 05:33 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 01-11-2002
Registered User
 

Join Date: Dec 2001
Location: Overland Patrk
Posts: 62
Question How would I telnet & change user password automatically in a script

I would like to create a script that logs into a list of several servers 50+ and changes my password all at once.

Every 60 days we are required to login to each system and change our passwords or else they expire and our login account is deleted.

I have an idea on how I could do this but have not tested whether you can run just a basic telnet in a script to automatically change to a predetermined password.

This has to work on AIX, Solaris, HP-UX, & Linux.

All of the existing passwords are the same for my account so no logic would have to be built for exceptions.

What would be the best way to do this?
Forum Sponsor
  #2  
Old 01-11-2002
Registered User
 

Join Date: Jan 2002
Location: Newberg, Oregon
Posts: 1
darthur,

If you are authorized to use remote shell (rsh, remsh in AIX) this would be one way of accomplishing this. These commands allow you to runa command on a remote system if you have access to do so.

Steve
  #3  
Old 01-11-2002
Registered User
 

Join Date: Dec 2001
Location: Overland Patrk
Posts: 62
Can't always do rsh commands

Unfortunately most of the servers I am trying to access do not allow rsh or any "r" commands.

I have tried to test autologging into the host but I don't know how to get telnet to accept a username and password from the script.
  #4  
Old 01-11-2002
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,445
You would not want to do this with telnet.... telnet has a text in the clear (not encrypted)... so you would be opening all these servers up to the potential for security breaches.......


You could use a script AFTER opening an SSH command line session... that means you need SSH on every server.....
  #5  
Old 01-14-2002
Registered User
 

Join Date: Dec 2001
Location: Overland Patrk
Posts: 62
Question

I will leave ssh up to the Systems Administrators, to see if they can provide some type of solution to synchronize our passwords. Some Admins but not all, use NIS+ which works well.

I don't care if I pass a clear text password. How would I create the script anyway?
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:05 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0