É possível remover o atraso de 3s ao inserir a senha errada?
Exemplo em:
su -
comando?
Tentei configurar o módulo pam_unix e su , mas não funcionou.
Meu arquivo /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
Meu arquivo /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
Quando digito um passe errado, há 2,3 segundos de atraso:
[myuser@myhost ~]$ time su -
Password:
su: Authentication failed
real 0m3,265s
user 0m0,008s
sys 0m0,008s
Bug ou configuração pam errada?
Obrigado a todos
Informações sobre meu 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
O problema é que eu estava editando o arquivo pam.d errado!
su - a configuração estava no arquivo /etc/pam.d/su-l !!
Eu adicionei nodelay na linha
Obrigado a todos!
Copiado de pergunta para resposta