André,

Dá uma olhada no pacote EXPECT:

Nos exemplos dele já tem um script pronto para troca de senha.

# apt-cache show expect
Package: expect
Priority: optional
Section: interpreters
Installed-Size: 580
Maintainer: Mike Markley <[EMAIL PROTECTED]>
Architecture: i386
Version: 5.42.1-1.2
Replaces: expect5.31 (<< 5.31.8-4), expect5.24 (<< 5.30.1-8)
Depends: libc6 (>= 2.3.2.ds1-4), tcl8.4 (>= 8.4.5)
Suggests: expectk
Conflicts: expect5.31 (<< 5.31.8-4), expect5.24 (<< 5.30.1-8)
Filename: pool/main/e/expect/expect_5.42.1-1.2_i386.deb
Size: 273614
MD5sum: 1ca4e494954094cab2d5131db9813c5a
Description: A program that "talks" to other programs
 Expect is a program that "talks" to other interactive programs
 according to a script.  Following the script, Expect knows what
 can be expected from a program and what the correct response
 should be.  An interpreted language provides branching and high-
 level control structures to direct the dialogue.  In addition,
 the user can take control and interact directly when desired,
 afterward returning control to the script.



On Fri, 9 Sep 2005 14:57:50 +0000 (GMT), Andre C|-|@k4L wrote
> Ola lista...
> 
> Estou escrevendo um script para alterar a senhas sem
> confirmação... No RedHat usando a seguinte linha
> funciona ok:
>   echo SENHA | passwd USUARIO --stdin
> 
> No Debian esta mesma linha da erro (/usr/bin/passwd:
> invalid option -- -), ja instalei a biblioteca que é
> necessário para tal função (libgii).
> 
> Alguem sabe como posso fazer isto no Debian!?
> 
> Obrigado e até mais...
> 
> __________________________________________________
> Converse com seus amigos em tempo real com o Yahoo! Messenger 
> http://br.download.yahoo.com/messenger/
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


--
Frederico Costa 

LCL Soluções em Tecnologia
http://www.lcl.com.br/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Responder a