= Scripting Python setuid = This is primarily about writing a script that needs to be run as root by non-root users. Step 1: Write your script and make sure that your script does exactly and only what you want it to be. Step 2: {{{ # pyinstaller -F [scriptname] }}} Step 3: {{{ # sudo chown root:root [scriptname] }}} Step 4: {{{ # sudo chmod 770 [scriptname] }}} Step 4: {{{ # sudo u+s [scriptname] }}}