How to Disable user account from login


อันนี้ง่ายมากครับพี่น้อง

Simple and Easy there are 2 ways to do this

Edit /etc/shadow file with this configurations below choose only one:

  1. put "!" in front of the encrypted password
    Example: test:!afadfadfaadfja;dkf:14078:0:55555:7:::
  2. put "*" instead of the encrypted password
    Example: dummy:*:11234:0:55555:7:::

Note: Becareful when you are want to use the secondone, you'll lose your password!!!

Ref: MDLog:/Sysadmin

คำสำคัญ (Tags): #linux#disable#user
หมายเลขบันทึก: 213010เขียนเมื่อ 30 กันยายน 2008 16:55 น. ()แก้ไขเมื่อ 12 กุมภาพันธ์ 2012 02:25 น. ()สัญญาอนุญาต: จำนวนที่อ่านจำนวนที่อ่าน:


ความเห็น (0)

ไม่มีความเห็น

พบปัญหาการใช้งานกรุณาแจ้ง LINE ID @gotoknow
ClassStart
ระบบจัดการการเรียนการสอนผ่านอินเทอร์เน็ต
ทั้งเว็บทั้งแอปใช้งานฟรี
ClassStart Books
โครงการหนังสือจากคลาสสตาร์ท