Bash script as root problem

Amichai Rotman amichai at iglu.org.il
Sun Mar 17 19:53:52 UTC 2013


Maybe by tweaking sudo: create a user, add it to sudoers and allow him to
run only the commands you want

Sent from my Android Smartphone


  עמיחי רוטמן
 פינגווין - שרותי מחשוב וייעוץ טכני בקוד פתוח
 073-7962360 ||  054-4605787



Please consider the environment before printing this e-mail!


On Mar 16, 2013 11:35 PM, "Johnny Rosenberg" <gurus.knugum at gmail.com> wrote:

> 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
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20130317/9d9bd31f/attachment.html>


More information about the ubuntu-users mailing list