It’s possible to remove 3s delay when entering wrong password?
ex in su -
command?
I’ve try to configure pam_unix and su module but it doesn’to work.
My system-auth file:
#%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.
#%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
When i type a wrong pass, there are 2,3 sec of delay:
[myuser@myhost ~]$ time su -
Password:
su: Autenticazione non riuscita
real 0m3,265s
user 0m0,008s
sys 0m0,008s
Bug or wrong pam config?
Thanks to all
My Manjaro info:
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
Now, you just need to decide whose post to mark as the solution; I notice that @Zesko stated the obvious before anyone else:
And another…
Allow me to add, for the sake of clarity…
Setting delay=0 does work.
The additional delay is caused by the usual performance bottlenecks of your system. There is little to be done about that, apart from fine tuning your BIOS and System to maximise performance; or perhaps buying a bitcoin rated graphics card and a high performance computer.
[myuser@myhost /]# cat /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
auth optional pam_faildelay.so delay=0
account required pam_unix.so
session required pam_unix.so
password include system-auth
delay was still about 3s:
[myuser@myhost ~]$ time su -
Password:
su: Autenticazione non riuscita
real 0m2,593s
user 0m0,008s
sys 0m0,008s