| Linux/UNIX Linuxverfechter finden hier Weggefährten. |
Diskussion: Linux PAM: pam_tally im Forum Linux/UNIX, in der Kategorie Operating Systems; Anzeige Hi, ich versuche momentan den Login so zu konfigurieren, dass man nach 3 Fehlversuchen gesperrt ist. Dazu brauche ich ...
![]() |
| | #1 (permalink) |
| Senior Member Registriert seit: 26.03.06 ![]() Likes: 16 | Anzeige Hi, ich versuche momentan den Login so zu konfigurieren, dass man nach 3 Fehlversuchen gesperrt ist. Dazu brauche ich ja das PAM Modul pam_tally.so. In der man page steht Code: EXAMPLES
Add the following line to /etc/pam.d/login to lock the account after
too many failed logins. The number of allowed fails is specified by
/var/log/faillog and needs to be set with pam_tally or faillog(8)
before.
auth required pam_securetty.so
auth required pam_tally.so per_user
auth required pam_env.so
auth required pam_unix.so
auth required pam_nologin.so
account required pam_unix.so
password required pam_unix.so
session required pam_limits.so
session required pam_unix.so
session required pam_lastlog.so nowtmp
session optional pam_mail.so standard Außerdem möchte ich den Eintrag lieber in /etc/pam.d/common-auth machen, da es nicht nur für das login Kommando gelten soll. Wie entscheide ich hier an welcher Stelle im Stack ich den Eintrag mache?? Code: # here are the per-package modules (the "Primary" block) auth sufficient pam_thinkfinger.so auth [success=1 default=ignore] pam_unix.so try_first_pass nullok_secure # here's the fallback if no module succeeds auth requisite pam_deny.so # prime the stack with a positive return value if there isn't one already; # this avoids us returning an error just because nothing sets a success code # since the modules above will each just jump around auth required pam_permit.so # and here are more per-package modules (the "Additional" block) auth optional pam_smbpass.so migrate # end of pam-auth-update config serow EDIT: Sry evtl wäre gut gewesen zu posten was ich konfiguriert habe und wie es sich verhält: /etc/pam.d/common-auth Code: # here are the per-package modules (the "Primary" block) auth required pam_tally.so onerr=fail deny=3 magic_root no_reset auth sufficient pam_thinkfinger.so auth [success=1 default=ignore] pam_unix.so try_first_pass nullok_secure # here's the fallback if no module succeeds auth requisite pam_deny.so # prime the stack with a positive return value if there isn't one already; # this avoids us returning an error just because nothing sets a success code # since the modules above will each just jump around auth required pam_permit.so # and here are more per-package modules (the "Additional" block) auth optional pam_smbpass.so migrate # end of pam-auth-update config Code: # here are the per-package modules (the "Primary" block) account required pam_tally.so onerr=fail magic_root no_reset account [success=1 new_authtok_reqd=done default=ignore] pam_unix.so # here's the fallback if no module succeeds account requisite pam_deny.so # prime the stack with a positive return value if there isn't one already; # this avoids us returning an error just because nothing sets a success code # since the modules above will each just jump around account required pam_permit.so # and here are more per-package modules (the "Additional" block) # end of pam-auth-update config cu serow EDIT: Auf Debian 5.0 führt folgender Eintrag in /etc/pam.d/common-auth dazu, dass ich mich der screensaver nicht mehr rein lässt: Code: auth required pam_tally.so onerr=fail deny=5 |
| | |
![]() |
| - Anzeige - | |
| |
| Themen-Optionen | |
| Ansicht | |
| |
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Linux Foundation - Linux Kernel Development | KlausSchiefer | News & Ankündigungen | 1 | 02.04.08 18:19 |
| Frage zu Linux Mint oder generell Linux | VivaLosTioz | Linux/UNIX | 10 | 06.12.07 01:31 |
| SuSE Linux 10.0 optimal für den Linux-Einstieg? | Metallica | Linux/UNIX | 4 | 07.11.05 22:28 |
| Gemeinsame Linux-Version der Linux Giganten | Tec | News & Ankündigungen | 0 | 12.09.02 21:08 |
| Ein neuer Stern am Linux Himmel - Gentoo Linux 1.2 | Indi | News & Ankündigungen | 0 | 29.08.02 18:04 |