Linux中的帳號登入次數確認 -- faillog

在Linux中有時會遇到多次嘗試登入後帳號被鎖定無法再登入的狀況
faillog可用來確認帳號嘗試登入失敗次數與登入次數限制


faillog有以下參數:
-a, --all 
display faillog records for all users(列出所有user紀錄)

-h, --help 
display this help message and exit(列出help message)

-l, --lock-time SEC
after failed login lock accout to SEC seconds(登入失敗後指地時間內鎖定無法登入)

-m, --maximum MAX
set maximum failed login counters to MAX(指定最大可嘗試登入失敗次數)

-r, --reset
reset the counters of login failures(登入失敗紀錄初始化)

-t, --time DAYS
display faillog records more recent than DAYS(列出近期指定日數的登入失敗紀錄)

-u, --user LOGIN
display faillog record or maintains failure counters and limits (if used with -r, -m or -l options) only for user with LOGIN(針對指定user進行faillog確認、初始化等動作)

在帳號登入失敗次數過多後,無法登入的話可朝這個方向查詢

沒有留言:

張貼留言