密码输入错误时的3秒延迟可以取消吗?
示例如下:
su -
命令?
我尝试配置pam_unix和su模块,但它不起作用。
我的/etc/pam.d/system-auth文件:
#%PAM-1.0
#auth required pam_faillock.so preauth
# Optionally use requisite above if you do not want to prompt for the password on locked accounts.
-auth [success=2 default=ignore] pam_systemd_home.so
auth [success=1 default=bad] pam_unix.so try_first_pass nullok nodelay
#auth [default=die] pam_faillock.so authfail
auth optional pam_permit.so
auth required pam_env.so
#auth required pam_faillock.so authsucc
# If you drop the above call to pam_faillock.so the lock will be done also on non-consecutive authentication failures.
-account [success=1 default=ignore] pam_systemd_home.so
account required pam_unix.so
account optional pam_permit.so
account required pam_time.so
-password [success=1 default=ignore] pam_systemd_home.so
password required pam_unix.so try_first_pass nullok shadow
password optional pam_permit.so
-session optional pam_systemd_home.so
session required pam_limits.so
session required pam_unix.so
session optional pam_permit.so
我的/etc/pam.d/su文件:
#%PAM-1.0
auth sufficient pam_rootok.so
#Uncomment the following line to implicitly trust users in the "wheel" group.
#auth sufficient pam_wheel.so trust use_uid
#Uncomment the following line to require a user to be in the "wheel" group.
#auth required pam_wheel.so use_uid
auth required pam_unix.so nodelay
account required pam_unix.so
session required pam_unix.so
password include system-auth
当我输入错误的通行证时,会有 2.3 秒的延迟:
[myuser@myhost ~]$ time su -
Password:
su: Authentication failed
real 0m3,265s
user 0m0,008s
sys 0m0,008s
Bug 或者错误的 pam 配置?
谢谢大家
我的 Manjaro 信息:
Operating System: Manjaro Linux
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.9.0-MANJARO (64-bit)
Graphics Platform: X11
问题是我编辑了错误的 pam.d 文件!
su -设置位于/etc/pam.d/su-l文件中!
我已经在线添加了nodelay
谢谢大家!
从问题复制到答案