(01-07-2024, 09:09 PM)Wallyboy Wrote: Can I run them as root within a script file? Not sure how to do that.Just prepend sudo to the command; although that rings a bell... about the "echo" thing...
Maybe it's better you include the three commands in a shell script, and then invoke the script with:
sudo ./yourscript.sh
although I am not sure if that would wait for the password... maybe making "root" the script owner, and then setting its sticky flag would have better chances of running.