From 5cce73a26e3ce6877c2f429f9a34ce4515442279 Mon Sep 17 00:00:00 2001 From: Michael E Brown Date: Thu, 6 Dec 2007 12:21:52 -0600 Subject: convert to use consolehelper rather than setuid wrapper. --- etc/consolehelper/mock | 4 ++++ etc/pam/mock | 13 +++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 etc/consolehelper/mock create mode 100644 etc/pam/mock (limited to 'etc') diff --git a/etc/consolehelper/mock b/etc/consolehelper/mock new file mode 100644 index 0000000..5c2ea24 --- /dev/null +++ b/etc/consolehelper/mock @@ -0,0 +1,4 @@ +USER=root +PROGRAM=/usr/sbin/mock.py +SESSION=false +FALLBACK=false diff --git a/etc/pam/mock b/etc/pam/mock new file mode 100644 index 0000000..4b566af --- /dev/null +++ b/etc/pam/mock @@ -0,0 +1,13 @@ +#%PAM-1.0 +auth sufficient pam_rootok.so +auth sufficient pam_succeed_if.so user ingroup mock use_uid quiet +# 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 include system-auth +account sufficient pam_succeed_if.so user ingroup mock use_uid quiet +account include system-auth +password include system-auth +session include system-auth +session optional pam_xauth.so -- cgit