From 80ffe6caf81e6004b6096d81ffc68f5942e5a621 Mon Sep 17 00:00:00 2001 From: William Douglas Date: Tue, 7 May 2013 17:52:30 -0700 Subject: [PATCH] Rework how sudo access is granted. Instead of per user sudoer config settings being added just let any user in the wheel group have full sudo access. Remove old tizen_conf file. Signed-off-by: William Douglas --- packaging/sudo.spec | 3 --- packaging/tizen_conf | 3 --- plugins/sudoers/sudoers.in | 2 +- 3 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 packaging/tizen_conf diff --git a/packaging/sudo.spec b/packaging/sudo.spec index 9501ea0..8d444dd 100644 --- a/packaging/sudo.spec +++ b/packaging/sudo.spec @@ -7,7 +7,6 @@ Group: System/Base Url: http://www.sudo.ws/ Source0: http://sudo.ws/sudo/dist/%{name}-%{version}.tar.gz Source1: sudo.pamd -Source2: tizen_conf BuildRequires: groff BuildRequires: pam-devel Requires(pre): coreutils @@ -57,7 +56,6 @@ make %{?_smp_mflags} %make_install install -d -m 755 %{buildroot}%{_sysconfdir}/pam.d install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/sudo -install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sudoers.d rm -f %{buildroot}%{_bindir}/sudoedit ln -sf %{_bindir}/sudo %{buildroot}%{_bindir}/sudoedit rm -f %{buildroot}%{_docdir}/%{name}/sample.pam @@ -78,7 +76,6 @@ chmod 0440 %{_sysconfdir}/sudoers %defattr(-,root,root) %config(noreplace) %attr(0440,root,root) %{_sysconfdir}/sudoers %dir %{_sysconfdir}/sudoers.d -%{_sysconfdir}/sudoers.d/* %config %{_sysconfdir}/pam.d/sudo %attr(4755,root,root) %{_bindir}/sudo %{_bindir}/sudoedit diff --git a/packaging/tizen_conf b/packaging/tizen_conf deleted file mode 100644 index f10e99b..0000000 --- a/packaging/tizen_conf +++ /dev/null @@ -1,3 +0,0 @@ - -## wheel is without a password -%wheel ALL=(ALL) NOPASSWD: ALL diff --git a/plugins/sudoers/sudoers.in b/plugins/sudoers/sudoers.in index 42e639e..1eed849 100644 --- a/plugins/sudoers/sudoers.in +++ b/plugins/sudoers/sudoers.in @@ -72,7 +72,7 @@ root ALL=(ALL) ALL ## Uncomment to allow members of group wheel to execute any command -# %wheel ALL=(ALL) ALL +%wheel ALL=(ALL) ALL ## Same thing without a password # %wheel ALL=(ALL) NOPASSWD: ALL -- 2.7.4