Apply sudo config to the right user

Sudo configuration applies to the user running the sudo command not new the
user.
This commit is contained in:
Robert Nelson 2015-06-04 12:08:47 -07:00
parent 6706be269f
commit 123712ef02
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ install -m 0640 conf/pandora_server.conf.new $RPM_BUILD_ROOT%{_sysconfdir}/pando
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sudoers.d mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sudoers.d
chmod 0750 $RPM_BUILD_ROOT%{_sysconfdir}/sudoers.d chmod 0750 $RPM_BUILD_ROOT%{_sysconfdir}/sudoers.d
cat <<EOF > $RPM_BUILD_ROOT%{_sysconfdir}/sudoers.d/pandora cat <<EOF > $RPM_BUILD_ROOT%{_sysconfdir}/sudoers.d/pandora
Defaults:pandora !requiretty Defaults:root !requiretty
EOF EOF
chmod 0440 $RPM_BUILD_ROOT%{_sysconfdir}/sudoers.d/pandora chmod 0440 $RPM_BUILD_ROOT%{_sysconfdir}/sudoers.d/pandora