RSS

Archive | Security RSS feed for this section

Configure the shell to logout automatically after a period of idle time.

30. May 2008

Comments Off

ในบางระบบที่มีการให้ user login เข้าสู่ระบบเยอะมากและมี user ที่ออกจากระบบโดยไม่มีการ logout ออกไปจะทำให้ระบบสูญเสียทรัพยากรโดยใช้เหตุ ดังนั้นเราสามารถที่จะนำวิธีนี้มาแก้ไขได้และยังเพื่อความปลอดภัยให้กับระบบอีกทางนึงด้วย วิธีการจะแตกต่างกันขึ้นอยู่กับ shell ที่ใช้ซึ่งสามารถดูวิธีการเว็ตของแต่ละ shell ได้ดังวิธีข้างล่าง สำหรับ bash or zsh: #export TMOUT=เวลา หน่อยเป็นวินาที สำหรับ tcsh: #set autologout=เวลา หน่อยเป็นวินาที สำหรับ ksh: #export TMOUT=เวลา หน่อยเป็นวินาที Permanent link to this post (33 words, estimated 8 secs reading time) Tags: logout, shell Related posts No related posts.

Continue reading...

Telnet as the root user

8. September 2007

0 Comments

โดยทั่วไป Linux ไม่เปิดการใช้งาน telnet service กันเนื่องจากปัญหาด้านความปลอดภัยของการใช้งาน แต่ถ้าเราต้องการจะใช้งาน telnet ละแล้วก็ไม่อยาก login หลายครั้ง จะทำอย่างไร ในบทความนี้ได้พูดถึงวิธีการทำให้สามารถ remote ด้วย telnet โดยใช้ root user ได้ด้วยขั้นตอนง่ายๆ ดังนี้ครับ แก้ไขไฟล์ /etc/pam.d/login และทำการ comment ด้วย # ดังตัวอย่างด้านล่างครับ #%PAM-1.0#Commented out below line in order to allow root access for telnet#auth required pam_securetty.soauth [...]

Continue reading...

Warning: stristr() [function.stristr]: Empty delimiter in E:\ezylinux\wp-content\plugins\wassup\wassup.php on line 2093