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

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