* Use pam_xauth in su to pass the X cookies.
svn path=/nixos/trunk/; revision=7702
This commit is contained in:
parent
9866132d81
commit
55e7f8f5dc
@ -97,6 +97,7 @@ import ../helpers/make-etc.nix {
|
||||
if config.get ["users" "ldap" "enable"]
|
||||
then pkgs.pam_ldap
|
||||
else "/no-such-path";
|
||||
inherit (pkgs.xorg) xauth;
|
||||
};
|
||||
target = "pam.d/" + program;
|
||||
}
|
||||
|
@ -3,3 +3,4 @@ auth include common-auth
|
||||
account include common-account
|
||||
password include common-password
|
||||
session include common-session
|
||||
session optional pam_xauth.so xauthpath=@xauth@/bin/xauth systemuser=99
|
||||
|
Loading…
Reference in New Issue
Block a user