Wenn er denn korrekt wäre.doktor5000 hat geschrieben:Hier ist eine Lösung:
http://forum.mandriva.com/en/viewtopic. ... 88#p749688
Willst du, dass sich das Passwort nicht solange gemerkt wird, ist der dritte Vorschlag für dich interessant.
In der Datei /etc/pam.d/simple_root_authen gibt es den Eintrag 'pam_timestamp' nicht, man kann also auch nichts ändern. Man kann ihn natürlich hinzufügen, dazu müsste man aber wissen, wie der Eintrag für "gar kein Timeout" lauten muss.If you want to change the timeout, you have to add a different timeout to pam_timestamp in /etc/pam.d/simple_root_authen.
PAM_TIMESTAMP(8) Linux-PAM Manual PAM_TIMESTAMP(8)
NAME
pam_timestamp - Authenticate using cached successful authentication attempts
SYNOPSIS
pam_timestamp.so [timestamp_timeout=number] [verbose] [debug]
DESCRIPTION
In a nutshell, pam_timestamp caches successful authentication attempts, and allows you to use a recent successful attempt as the basis for
authentication. This is similar mechanism which is used in sudo.
When an application opens a session using pam_timestamp, a timestamp file is created in the timestampdir directory for the user. When an
application attempts to authenticate the user, a pam_timestamp will treat a sufficiently recent timestamp file as grounds for succeeding.
OPTIONS
timestamp_timeout=number
How long should pam_timestamp treat timestamp as valid after their last modification date (in seconds). Default is 300 seconds.
If you want to change the timeout, you have to add a different timeout to pam_timestamp in /etc/pam.d/simple_root_authen.
#%PAM-1.0
auth sufficient pam_rootok.so
auth sufficient pam_timestamp.so
auth include system-auth
session required pam_permit.so
session optional pam_xauth.so
session optional pam_timestamp.so
account required pam_permit.so
auth required pam_succeed_if.so quiet user != xguest
gert hat geschrieben:sorry, ich war zu langsam !!!
doktor5000 hat geschrieben:Richtig, und genau dort kann auch der Timeout eingetragen werden.
Sagen einem auch die entsprechenden man-Pages (pam-panel-icon, pam_timestamp)
# /lib64/security/pam_timestamp.so timestamp_timeout=0
#%PAM-1.0
auth sufficient pam_rootok.so
auth sufficient pam_timestamp.so
auth include system-auth
session required pam_permit.so
session optional pam_xauth.so
session optional pam_timestamp.so timestamp_timeout=0
account required pam_permit.so
auth required pam_succeed_if.so quiet user != xguest
auth sufficient pam_timestamp.so timestamp_timeout=0
junior hat geschrieben:Super.
Bei mir auch. Ich hab die einfach auskommentiert, ist aber nicht so elegant
%PAM-1.0
auth sufficient pam_rootok.so
#auth sufficient pam_timestamp.so
auth include system-auth
session required pam_permit.so
session optional pam_xauth.so
session optional pam_timestamp.so
account required pam_permit.so
junior hat geschrieben:Bei mir auch. Ich hab die einfach auskommentiert, ist aber nicht so elegant
Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast