°Ô½Ã¹° 42°Ç
   
[½ºÅ©¸³Æ®] ¸ÖƼ Æнº¿öµå º¯°æ ½ºÅ©¸³Æ®
±Û¾´ÀÌ : ÃÖÀå¼· ³¯Â¥ : 2014-08-12 (È­) 14:02 Á¶È¸ : 3109
1. Æнº¿öµå º¯°æ ½ºÅ©ÆÁÆ® ¹èÆ÷

#!/bin/bash
clear

for HOST in `cat /root/test/host`

do
        echo "$HOST"
scp -p /root/test/ch_passwd.sh $HOST:/root/ch_passwd.sh
sleep 1
ssh $HOST "sh /root/ch_passwd.sh"
sleep 1
done

2. ¹èÆ÷µÈ ½ºÅ©¸³Æ® ½ÇÇà 

#!/bin/bash
clear
echo -e "º¯°æÆнº¿öµå"  |  (passwd --stdin root) |
rm -rf /root/ch_passwd.sh


À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com