| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
Summary: Sudo |
| 2 | 2 |
Name: sudo |
| 3 | 3 |
Version: 1.8.11p1 |
| 4 |
-Release: 2 |
|
| 4 |
+Release: 3 |
|
| 5 | 5 |
License: ISC |
| 6 | 6 |
URL: https://www.kernel.org/pub/linux/libs/pam/ |
| 7 | 7 |
Group: System Environment/Security |
| ... | ... |
@@ -11,7 +11,7 @@ Source0: http://www.sudo.ws/sudo/dist/%{name}-%{version}.tar.gz
|
| 11 | 11 |
BuildRequires: man-db |
| 12 | 12 |
BuildRequires: Linux-PAM |
| 13 | 13 |
Requires: Linux-PAM |
| 14 |
- |
|
| 14 |
+Requires: shadow |
|
| 15 | 15 |
%description |
| 16 | 16 |
The Sudo package allows a system administrator to give certain users (or groups of users) |
| 17 | 17 |
the ability to run some (or all) commands as root or another user while logging the commands and arguments. |
| ... | ... |
@@ -37,11 +37,26 @@ make %{?_smp_mflags}
|
| 37 | 37 |
make install DESTDIR=%{buildroot}
|
| 38 | 38 |
install -v -dm755 %{buildroot}/%{_docdir}/%{name}-%{version}
|
| 39 | 39 |
find %{buildroot}/%{_libdir} -name '*.la' -delete
|
| 40 |
+cat >> %{buildroot}/etc/sudoers << EOF
|
|
| 41 |
+%wheel ALL=(ALL) ALL |
|
| 42 |
+%sudo ALL=(ALL) ALL |
|
| 43 |
+EOF |
|
| 44 |
+install -vdm755 %{buildroot}/etc/pam.d
|
|
| 45 |
+cat > %{buildroot}/etc/pam.d/sudo << EOF
|
|
| 46 |
+#%%PAM-1.0 |
|
| 47 |
+auth include system-auth |
|
| 48 |
+account include system-account |
|
| 49 |
+password include system-password |
|
| 50 |
+session include system-session |
|
| 51 |
+session required pam_env.so |
|
| 52 |
+EOF |
|
| 53 |
+ |
|
| 40 | 54 |
%find_lang %{name}
|
| 41 | 55 |
%{_fixperms} %{buildroot}/*
|
| 42 | 56 |
%check |
| 43 | 57 |
make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
|
| 44 | 58 |
%post -p /sbin/ldconfig |
| 59 |
+groupadd wheel |
|
| 45 | 60 |
%postun -p /sbin/ldconfig |
| 46 | 61 |
%clean |
| 47 | 62 |
rm -rf %{buildroot}/*
|
| ... | ... |
@@ -58,6 +73,8 @@ rm -rf %{buildroot}/*
|
| 58 | 58 |
%{_docdir}/%{name}-%{version}/*
|
| 59 | 59 |
%{_datarootdir}/locale/*
|
| 60 | 60 |
%changelog |
| 61 |
+* Fri May 29 2015 Divya Thaluru <dthaluru@vmware.com> 1.8.11p1-3 |
|
| 62 |
+- Adding sudo configuration and PAM config file |
|
| 61 | 63 |
* Wed May 27 2015 Divya Thaluru <dthaluru@vmware.com> 1.8.11p1-2 |
| 62 | 64 |
- Adding PAM support |
| 63 | 65 |
* Thu Oct 09 2014 Divya Thaluru <dthaluru@vmware.com> 1.8.11p1-1 |