Powered by Invision Power Board


  Reply to this topicStart new topicStart Poll

> password change in a no interactive mode
sriveran
Posted: Jun 1 2005, 05:48 PM
Quote Post


Newbie
*

Group: Members
Posts: 2
Member No.: 1033
Joined: 1-June 05





Hello, everyone.

I was wondering if you could help me out with some question.
I have to change the password for a user in a batch process using unix command “passwd”; the problem is there is not interaction with any user in this batch process.

I was checking the options in this command in order to provide the new password and disable the prompts that ask for the old and the new password at the command line and looks to me that I can not run this command directly.

Do I need to use a input file or something similar.?

I tried :
passwd < passwdInput.txt where passwdInput is a file with the oldpassword and new password but still is showing the interactive mode asking: "Enter existing login password:"

Any idea?

If you guys could help me , it will greatly be appreciated.
PMEmail Poster
Top
fishsponge
Posted: Jun 8 2005, 09:26 AM
Quote Post


Administrator
********

Group: Admin
Posts: 679
Member No.: 1
Joined: 13-February 03



first of all, this is *really* insecure. Why do you have to script a password change?

Secondly, if you really must do this, then type "man expect".
PMEmail PosterUsers WebsiteICQAOLYahooMSN
Top
sriveran
Posted: Jun 8 2005, 01:32 PM
Quote Post


Newbie
*

Group: Members
Posts: 2
Member No.: 1033
Joined: 1-June 05



Thank you very much for your help.
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | Shells & Scripting | Next Newest »

Topic Options Reply to this topicStart new topicStart Poll

 



[ Script Execution time: 0.0470 ]   [ 12 queries used ]   [ GZIP Enabled ]




Partners: Cambridge Plus :: <Link Available> :: PIC Boot-loader Utility :: <Link Available>
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum