aboutsummaryrefslogtreecommitdiffstats
path: root/security/sudo
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2007-04-10 20:47:09 +0800
committerdes <des@FreeBSD.org>2007-04-10 20:47:09 +0800
commita8c84143ff18044df163fec7985b432f761d2e98 (patch)
tree88099ac4e0995303ee8cb06651a7a1f5c821568a /security/sudo
parent54652d920ee3a2f85ffd89bc2afeb517675c25c3 (diff)
downloadfreebsd-ports-gnome-a8c84143ff18044df163fec7985b432f761d2e98.tar.gz
freebsd-ports-gnome-a8c84143ff18044df163fec7985b432f761d2e98.tar.zst
freebsd-ports-gnome-a8c84143ff18044df163fec7985b432f761d2e98.zip
Install a PAM policy, rather than just suggesting that the admin do so.
Diffstat (limited to 'security/sudo')
-rw-r--r--security/sudo/Makefile4
-rw-r--r--security/sudo/files/pam.conf17
-rw-r--r--security/sudo/pkg-message19
-rw-r--r--security/sudo/pkg-plist1
4 files changed, 20 insertions, 21 deletions
diff --git a/security/sudo/Makefile b/security/sudo/Makefile
index 9c060becbd5f..6060e3741426 100644
--- a/security/sudo/Makefile
+++ b/security/sudo/Makefile
@@ -7,7 +7,7 @@
PORTNAME= sudo
PORTVERSION= 1.6.8.12
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= security
MASTER_SITES= http://www.sudo.ws/sudo/dist/ \
http://probsd.org/sudoftp/ \
@@ -68,6 +68,6 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/sample.sudoers ${PREFIX}/etc/sudoers.sample
${INSTALL_DATA} ${WRKSRC}/sudoers ${PREFIX}/etc/sudoers.default
${RM} ${PREFIX}/libexec/sudo_noexec.la
- ${CAT} ${PKGMESSAGE}
+ ${INSTALL_DATA} ${FILESDIR}/pam.conf ${PREFIX}/etc/pam.d/sudo
.include <bsd.port.post.mk>
diff --git a/security/sudo/files/pam.conf b/security/sudo/files/pam.conf
new file mode 100644
index 000000000000..8741b86047c5
--- /dev/null
+++ b/security/sudo/files/pam.conf
@@ -0,0 +1,17 @@
+#
+# $Id$
+#
+# PAM configuration for the "sudo" service
+#
+
+# auth
+auth include system
+
+# account
+account include system
+
+# session
+session include system
+
+# password
+password include system
diff --git a/security/sudo/pkg-message b/security/sudo/pkg-message
deleted file mode 100644
index 4d615b52f130..000000000000
--- a/security/sudo/pkg-message
+++ /dev/null
@@ -1,19 +0,0 @@
-If you store accounts in external place and want to use password
-authentication for sudo, you must create /etc/pam.d/sudo file like:
-
-=====================================================================
-#
-# PAM configuration for the "sudoers" service
-#
-# auth
-auth include system
-
-# account
-account include system
-
-# session
-session include system
-
-# password
-password include system
-=====================================================================
diff --git a/security/sudo/pkg-plist b/security/sudo/pkg-plist
index 97a00ff23990..9b5a215bd1a3 100644
--- a/security/sudo/pkg-plist
+++ b/security/sudo/pkg-plist
@@ -1,6 +1,7 @@
@unexec if cmp -s %D/etc/sudoers %D/etc/sudoers.default; then rm -f %D/etc/sudoers; fi
bin/sudo
bin/sudoedit
+etc/pam.d/sudo
etc/sudoers.default
etc/sudoers.sample
libexec/sudo_noexec.so