alexbcberio / root-scripts

Small C program to run scripts as root

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Root Scripts

Small C program to run any .sh script as root.

Use

Compile the file running the compile.sh script this will automatically add root as the file owner and give the setuid permission to the compiled file.

The file will always try to execute a file with the same name as it appending the .sh extension, you can rename it to whatever you want.

For example rename it to post-receive and save it into the git repository, then create a file called post-receive.sh and do anything you want in there.

About

Small C program to run scripts as root

License:MIT License


Languages

Language:C 96.6%Language:Shell 3.4%