Bash script as root problem

Johnny Rosenberg gurus.knugum at gmail.com
Sat Mar 16 21:32:02 UTC 2013


I have a bash script that I am going to run as root (sudo
script_name), but in that script there is a line that I want to be
executed as a regular user. Is that possible or do I need to do it the
other way around, that is enter sudo at the beginning of every line
except the one that I need to be run as a user?


Johnny Rosenberg




More information about the ubuntu-users mailing list