diff options
-rw-r--r-- | app-admin/sudo/ChangeLog | 6 | ||||
-rw-r--r-- | app-admin/sudo/files/sudoers | 7 | ||||
-rw-r--r-- | app-admin/sudo/sudo-1.6.8_p8-r3.ebuild | 4 |
3 files changed, 14 insertions, 3 deletions
diff --git a/app-admin/sudo/ChangeLog b/app-admin/sudo/ChangeLog index d023bcc33f06..30ad58bd31fb 100644 --- a/app-admin/sudo/ChangeLog +++ b/app-admin/sudo/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-admin/sudo # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/sudo/ChangeLog,v 1.52 2005/06/09 00:56:14 taviso Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/sudo/ChangeLog,v 1.53 2005/06/09 09:10:18 taviso Exp $ + + 09 Jun 2005; Tavis Ormandy <taviso@gentoo.org> files/sudoers, + sudo-1.6.8_p8-r3.ebuild: + add examples to sudoers 09 Jun 2005; Tavis Ormandy <taviso@gentoo.org> sudo-1.6.8_p8-r3.ebuild: nano should be the default editor. diff --git a/app-admin/sudo/files/sudoers b/app-admin/sudo/files/sudoers index 923472b93468..4642d501724b 100644 --- a/app-admin/sudo/files/sudoers +++ b/app-admin/sudo/files/sudoers @@ -25,6 +25,9 @@ Defaults env_reset # Allow specific user to bypass env_delete for TERMCAP # Defaults:user env_delete-=TERMCAP +# Set default EDITOR to vi, and do not allow visudo to use EDITOR/VISUAL. +# Defaults editor=/usr/bin/vim, !env_editor + # Runas alias specification # *** REMEMBER *************************************************** @@ -43,6 +46,10 @@ root ALL=(ALL) ALL # Same thing without a password # %wheel ALL=(ALL) NOPASSWD: ALL +# Users in group www are allowed to edit httpd.conf and ftpd.conf +# using sudoedit, or sudo -e, without a password. +# %www ALL=(ALL) NOPASSWD: sudoedit /etc/httpd.conf, /etc/ftpd.conf + # Samples # %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom # %users localhost=/sbin/shutdown -h now diff --git a/app-admin/sudo/sudo-1.6.8_p8-r3.ebuild b/app-admin/sudo/sudo-1.6.8_p8-r3.ebuild index eb281bd014e5..39a87930999b 100644 --- a/app-admin/sudo/sudo-1.6.8_p8-r3.ebuild +++ b/app-admin/sudo/sudo-1.6.8_p8-r3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/sudo/sudo-1.6.8_p8-r3.ebuild,v 1.4 2005/06/09 00:56:14 taviso Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/sudo/sudo-1.6.8_p8-r3.ebuild,v 1.5 2005/06/09 09:10:18 taviso Exp $ inherit eutils pam @@ -146,7 +146,7 @@ sudo_bad_var() { pkg_postinst() { use skey && use pam && { - ewarn "Sudo will not use skey authentication when compiled with" + ewarn "sudo will not use skey authentication when compiled with" ewarn "pam support." ewarn "To allow users to authenticate with one time passwords," ewarn "you should unset the pam USE flag for sudo." |