#tar zxvf opie-2.4.tar.gz
#./configure or sh configure
#make
#make install
#make clean
สำหรับติดตั้งทั้ง server and client, สามารถเลือกใช้เฉพาะ make server-install or make client-install ก็ได้
หากเกิด error
gcc -O -Ilibmissing opieinfo.o -Llibopie -Llibmissing -lopie -lnsl -lcrypt -lmissing -lopie -o opieinfoให้เพิ่ม #include<"errno.h"> ในไฟล์ opieinfo.c
/usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS reference in opieinfo.o
/lib/libc.so.6: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [opieinfo] Error 1
หากเกิด error :
yacc ftpcmd.yแก้โดย ติดตั้ง
make: yacc: Command not found
make: *** [y.tab.c] Error 127
#yum -y install byacc*
จากนั้น รันคำสั่ง
[root@localhost opie-2.4]# opiepasswd -c tum
Adding tum:
Only use this method from the console; NEVER from remote. If you are using
telnet, xterm, or a dial-in, type ^C now or exit with no password.
Then run opiepasswd without the -c parameter.
Using MD5 to compute responses.
Enter new secret pass phrase:
Again new secret pass phrase:
ID tum OTP key is 499 lo2691
MITT ARGO BOOK SHAG BARB DUG
เพื่อ เพิ่ม user ให้กับ OPIE
รันคำสั่ง
#opiekey -n 5 498 lo2691
แล้วอย่าลืมจด response ไว้ด้วยนะ เพื่อใช้ ล็อกอิน
หรือจะ โหลด โปรแกรม Winkey มาใช้ หา response ก็ได้จาก http://www.inner.net/pub/opie/contrib/
ทดสอบ ล็อกอิน

path อื่นๆ :
/usr/local/bin
/usr/local/man
ข้อมูลเพิ่มเติม :
http://www.inner.net/pub/opie/
http://www.inner.net/pub/opie/contrib/
http://www.thaicert.nectec.or.th/paper/authen/opie.php
No comments:
Post a Comment