[Gelöst] sudo crontab -e führt Bashscript aus, aber reboot geht nur mit sudo reboot.

  • Ich habe ein kleines Bashscript, dass alle x Minuten per crontab aufgerufen wird, das geht auch alles, bis auf die Tatsache, dass das reboot nicht funktioniert, wenn ich nicht sudo reboot schreibe, obwohl der crontab -e als root installiert wurde, auch absolute Pfade helfen nicht.

    Hier das Bashscript wie es funktioniert:

    Woran kann das liegen ?

    :helpnew:

    EDIT: Hat sich erledigt, muss mich wohl vertippelt haben, geht auch so:

    :dau2:

  • fred0815

    Changed the title of the thread from “sudo crontab -e führt Bashscript aus, aber reboot geht nur mit sudo reboot.” to “[Gelöst] sudo crontab -e führt Bashscript aus, aber reboot geht nur mit sudo reboot.”.