(Tips & Tricks) setuid script

May 25, 2015

By default you can NOT run scripts as setuid on many new Linux distro’s..

Use a small C-wrapper to circumvent this:

#define REAL_PATH "/usr/local/scripts/myscript.pl" main(ac, av) char **av; { execv(REAL_PATH, av); }

Compile and set uid on the executable and your script (/usr/local/scripts/myscript.pl) will run setuid 🙂

"If the Start Windows Restart when Windows starts check box is checked Windows Restart will start automatically every time Windows is started." - Actual excerpt from a windows program help file!"

Powered by Wordpress. Theme by Shlomi Noach, openark.org
© 1997 - 2022 KwaLinux Trainingen | Algemene voorwaarden | KvK: 10147727 | BTW-id: NL001873211B65 | Disclaimer