i want that my all users can run a bash script. But this bash script need to have root right, i want that this script is in read only and run with root right
my bash script :
#!/bin/bash /sbin/swapoff -a
in my search i found solution but it not work, this is solution :
# chown root:root monshell.sh # chmod 4755 monshell.sh # exit $ ./monshell.sh
but i have this error when i run with basic user : swapoff: Not superuser.