Warning: Undefined variable $kind in /home4/wgate/public_html/include/checkfunpdo.php on line 662

Warning: Undefined variable $vers in /home4/wgate/public_html/include/checkfunpdo.php on line 662

Warning: Undefined variable $kind in /home4/wgate/public_html/include/checkfunpdo.php on line 662

Warning: Undefined variable $vers in /home4/wgate/public_html/include/checkfunpdo.php on line 662
:::| 目前位置圖示目前位置:首頁圖示回首頁 | 主功能頁圖示相關問答
如何在Linux中阻止或禁用普通用戶登錄

[日期]:2018/06/25  [瀏覽人數]:410

若在/etc/nolog檔案存在時,一般用戶將會全部無法使用shell登入,

若要單獨更改部分帳號

Freebsd 可以更改/etc/master.passwd,其他部分的linux則是更改/etc/passwd

將/bin/bash改為/sbin/nologin