The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help with expect script somedude Shell Programming and Scripting 3 05-01-2008 11:47 AM
Need Help with EXPECT script markus2008 UNIX for Advanced & Expert Users 5 03-12-2008 04:49 PM
help with 'expect' script? maeve Shell Programming and Scripting 0 06-02-2004 03:18 PM
Expect Script HELP zuinc Shell Programming and Scripting 2 04-30-2002 06:42 AM
'expect' tool shaggy UNIX for Dummies Questions & Answers 2 09-27-2001 11:54 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-22-2003
Registered User
 

Join Date: Sep 2003
Location: Paris
Posts: 109
Stumble this Post!
Question need script for passwd , can't use expect tool

Hi ,

as others users here , i'm searching for a script which can automate "passwd" dialog .
I saw threads about "expect tool" but on my platforms , "C" product isn't installed and i'm not the admin so i can't install it.

is there another way to do it , with a "simple" shell script ???

regards

christian
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 09-23-2003
davidg's Avatar
Registered User
 

Join Date: Jul 2003
Location: Holland
Posts: 207
Stumble this Post!
Hi,

.netrc and .rhosts files still excist. But you've gotta do it on Unix systems though. I don't know if that is your case. Else input redirection doesn't work in these cases, sorry.

Regs David
Reply With Quote
  #3 (permalink)  
Old 09-23-2003
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,444
Stumble this Post!
If you are not the admin, why would you need a script to automate the passwd process?
Reply With Quote
  #4 (permalink)  
Old 09-23-2003
Registered User
 

Join Date: Sep 2003
Location: Paris
Posts: 109
Stumble this Post!
Thanks for your interest !

i use the same "username" on about 25 differents hosts and forced to change the password every "2 months" , so this is why i'm interested about automating this process.

christian
Reply With Quote
  #5 (permalink)  
Old 09-23-2003
davidg's Avatar
Registered User
 

Join Date: Jul 2003
Location: Holland
Posts: 207
Stumble this Post!
HI Perderabo,

I was reading it wrong the first time (as well). It's the passwd process for prompting the password. Not mody-fying the password-file. I think you make the same read-error as I did

Regs David
Reply With Quote
  #6 (permalink)  
Old 09-23-2003
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,444
Stumble this Post!
I didn't misread it, I knew that he wanted to automate the passwd program. I just didn't understand why a non-admin would want to do that. Now I do. Changing the password for one user on 25 boxes is a very different problem than changing the password for 25 users on one box.

Christian, can you telnet to all 25 boxes? Do you have expect available of any of them? If so you use expect to telnet to each box and then change your password.
Reply With Quote
  #7 (permalink)  
Old 09-23-2003
Registered User
 

Join Date: Sep 2003
Location: Paris
Posts: 109
Stumble this Post!
I have access to all hosts via Telnet or rlogin but i can't use "expect" because installing it need "C" product , we don't have it and we can't install it , install need "root" rights.

christian
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:30 PM.


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

Content Relevant URLs by vBSEO 3.2.0