[linux-baslangic] Re: Password Değiştirme

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Orhan Berent (berent@deu.net.tr)
Date: Fri 04 Jun 2004 - 17:14:18 EEST


saniyorum bu isi saglikli yapmak icin tcl/tkl kurmaniz gerekli.
Ornek script:

#!/usr/local/bin/expect -f
# wrapper to make passwd(1) be non-interactive
# username is passed as 1st arg, passwd as 2nd

set password [lindex $argv 1]
spawn passwd [lindex $argv 0]
expect "password:"
send "$password\r"
expect "password:"
send "$password\r"
expect eof

Orhan Berent

04-06-2004 Cuma günü saat 17:07 sularında, Namık SARI dedi ki:
> Arkadaşlar merhaba bir bash script içinde parametre olarak verdiğim username ve password bilgisi ile kullanıcı şifresini nasıl değştiririm?
> Örn : Script'imin adı psch olsun
>
> psch username password
>
> istediğim $1 ve $2 ile gelen deger doğrulsunda şifreyi confirm etmeden nasıl değiştiririm. passwd ile değiştiremiyorum.
>
> ---
> linux-baslangic listesinden cikmak ve tum listeci islemleri icin
> http://liste.linux.org.tr/ adresini kullanabilirisniz.
> Bu listeden cikmak icin
> <a href="mailto:linux-baslangic-request@liste.linux.org.tr?Subject=unsubscribe"> tiklayiniz</a>
>
>

---
linux-baslangic listesinden cikmak ve tum listeci islemleri icin
http://liste.linux.org.tr/ adresini kullanabilirisniz.
Bu listeden cikmak icin
<a href="mailto:linux-baslangic-request@liste.linux.org.tr?Subject=unsubscribe"> tiklayiniz</a>


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.