Fix for sudo-sh simple sudo replacement
There are blog posts about sudo-sh, including this:
"Shell wrapper for sudo"
https://bkhome.org/news/202404/shell-wrapper-for-sudo.html
Forum member Caramel has helped with the development of sudo-sh, and recently identified another issue, and posted a fix:
https://forum.puppylinux.com/viewtopic.php?p=156016#p156016
What we need is a temporary directory that any user can write to, so I have created /var/tmp0, with 0777 permissions; this folder will not be saved at shutdown. Also, I modified sudo-sh.c to create /var/tmp0/sudo-sh-pid-nonroot and /var/tmp0/sudo-sh-pid-root, with permissions 0666. So, sudo-sh-pid-root can be deleted by a non-root user.
/usr/local/clients/wait-other-sudo-sh has also been modified.
sudo-sh 1.6 source uploaded here:
https://distro.ibiblio.org/easyos/source/alphabetical/s/
It has been compiled in Easy Excalibur and a .pet
created.
Tags: easy