diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2007-04-10 20:47:09 +0800 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2007-04-10 20:47:09 +0800 |
commit | 8e649aef1dcc52930d437f8eb2fac8f09b025092 (patch) | |
tree | 3ddba21b2092ccf838ae32822fb1011a61f6bacd /security | |
parent | 0eddb1a32def32cc3d2f3b5cdbbdbd035362444c (diff) | |
download | freebsd-ports-gnome-8e649aef1dcc52930d437f8eb2fac8f09b025092.tar.gz freebsd-ports-gnome-8e649aef1dcc52930d437f8eb2fac8f09b025092.tar.zst freebsd-ports-gnome-8e649aef1dcc52930d437f8eb2fac8f09b025092.zip |
Install a PAM policy, rather than just suggesting that the admin do so.
Diffstat (limited to 'security')
-rw-r--r-- | security/sudo/Makefile | 4 | ||||
-rw-r--r-- | security/sudo/files/pam.conf | 17 | ||||
-rw-r--r-- | security/sudo/pkg-message | 19 | ||||
-rw-r--r-- | security/sudo/pkg-plist | 1 |
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 |