[packages/util-linux] - bring su related stuff from coreutils to here
arekm
arekm at pld-linux.org
Sun Oct 14 10:43:37 CEST 2012
commit b7092f0ddee284ecd1cb944018252b3fd401ec22
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Oct 14 10:43:35 2012 +0200
- bring su related stuff from coreutils to here
su-l.pamd | 6 ++++++
su-paths.patch | 18 ++++++++++++++++++
su.pamd | 9 +++++++++
3 files changed, 33 insertions(+)
---
diff --git a/su-l.pamd b/su-l.pamd
new file mode 100644
index 0000000..656a139
--- /dev/null
+++ b/su-l.pamd
@@ -0,0 +1,6 @@
+#%PAM-1.0
+auth include su
+account include su
+password include su
+session optional pam_keyinit.so force revoke
+session include su
diff --git a/su-paths.patch b/su-paths.patch
new file mode 100644
index 0000000..bcf5b2d
--- /dev/null
+++ b/su-paths.patch
@@ -0,0 +1,18 @@
+--- coreutils-4.5.3/login-utils/su.c.orig Sun Oct 27 21:57:03 2002
++++ coreutils-4.5.3/login-utils/su.c Sun Oct 27 22:15:05 2002
+@@ -154,6 +154,15 @@
+ # define DEFAULT_ROOT_LOGIN_PATH "/usr/ucb:/bin:/usr/bin:/etc"
+ #endif
+
++/* The default paths which get set are both bogus and oddly influenced
++ by <paths.h> and -D on the commands line. Just to be clear, we'll set
++ these explicitly. -ewt */
++#undef DEFAULT_LOGIN_PATH
++#undef DEFAULT_ROOT_LOGIN_PATH
++#define DEFAULT_LOGIN_PATH "/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin"
++#define DEFAULT_ROOT_LOGIN_PATH \
++ "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin:/usr/X11R6/sbin"
++
+ /* The shell to run if none is given in the user's passwd entry. */
+ #define DEFAULT_SHELL "/bin/sh"
+
diff --git a/su.pamd b/su.pamd
new file mode 100644
index 0000000..013bb59
--- /dev/null
+++ b/su.pamd
@@ -0,0 +1,9 @@
+#%PAM-1.0
+auth sufficient pam_rootok.so
+auth required pam_wheel.so group=wheel use_uid
+auth include system-auth
+account sufficient pam_succeed_if.so uid = 0 use_uid quiet
+account include system-auth
+password include system-auth
+session optional pam_xauth.so
+session include system-auth
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/util-linux.git/commitdiff/b7092f0ddee284ecd1cb944018252b3fd401ec22
More information about the pld-cvs-commit
mailing list