diff --git a/Slax/debian10/rootcopy/usr/bin/sudo b/Slax/debian10/rootcopy/usr/bin/sudo new file mode 100755 index 0000000..aaff119 --- /dev/null +++ b/Slax/debian10/rootcopy/usr/bin/sudo @@ -0,0 +1,11 @@ +#!/bin/bash +if [ "$#" -lt 1 ]; then + echo "Usage: sudo [command] [arguments]" + exit 1 +fi + +if [ "$UID" = 0 ]; then + exec "$@" +fi + +echo "Sudo is not installed. Run the command as root or install sudo."