I am trying to make a program that can restart sendmail but I need it accessible from any user.
So any user can restart sendmail.
I have a script that is this:
sh -c 'set `cat /var/run/sendmail.pid`; kill $1; shift; eval "$@"'
But it only works if invoked from user root.
How do I make it suid so anyone can run it?
Thank you so mucj