I am trying to install older version SUDO But whenever i do sudo make install
I get this error ,
if test -d ./.hg && cd .; then \
if hg log --style=changelog -b default > ChangeLog.tmp; then \
mv -f ChangeLog.tmp ChangeLog; \
else \
rm -f ChangeLog.tmp; \
fi; \
elif test -d ./.git && cd .; then \
./log2cl.pl -b master > ChangeLog; \
else \
echo "ChangeLog data not available" > ChangeLog; \
fi
for d in lib/util plugins/group_file plugins/sudoers plugins/system_group src include doc examples; do \
(cd $d && exec make pre-install) && continue; \
exit $?; \
done
make[1]: Entering directory '/home/kali/Downloads/sudo-1.8.27/lib/util'
make[1]: Nothing to be done for 'pre-install'.
make[1]: Leaving directory '/home/kali/Downloads/sudo-1.8.27/lib/util'
make[1]: Entering directory '/home/kali/Downloads/sudo-1.8.27/plugins/group_file'
make[1]: Nothing to be done for 'pre-install'.
make[1]: Leaving directory '/home/kali/Downloads/sudo-1.8.27/plugins/group_file'
make[1]: Entering directory '/home/kali/Downloads/sudo-1.8.27/plugins/sudoers'
Checking existing sudoers file for syntax errors.
>>> /etc/sudoers: syntax error near line 51 <<<
parse error in /etc/sudoers near line 51
make[1]: *** [Makefile:384: pre-install] Error 1
make[1]: Leaving directory '/home/kali/Downloads/sudo-1.8.27/plugins/sudoers'
make: *** [Makefile:103: pre-install] Error 2
I need to overwrite the current version of sudo 1.9.10.
make file 384 snippet make file 51 snippet
Thank You
CodePudding user response:
As far as I understood this command:
for d in lib/util plugins/group_file plugins/sudoers plugins/system_group src include doc examples; do \
(cd $d && exec make pre-install) && continue; \
exit $?; \
done
adds SUBDIRS
to /etc/sudoers
file, but the way it does the job causing incorrect syntax in /etc/sudoers
CodePudding user response:
All sudo versions are available here: https://www.sudo.ws/getting/download/#source
.
GUI: Open above link and click on sudo-{version}.tar.gx to download required sudo package.
Command line:
You can copy the link of sudo version you needed and download by using wget(or curl):
wget https://www.sudo.ws/dist/sudo-1.9.9.tar.gz