DSLR Webcam with Raspberry Pi

DSLR camera as webcam and for timelapse shots with raspberry pi, gphoto2 and imagemagick

Donnerstag, 14. August 2014

allow 'sudo' from browser for script

if you want to execute a script by browser input, you need to allow the webserver-user 'www-data' to use 'sudo' without the need to use sudo-password.

Therefore you use 'visudo' to edit /etc/sudoers, and add the follwing line at the end of the file:

www-data ALL=NOPASSWD: /home/YOUR_USER/YOUR_SCRIPT.sh



Eingestellt von Andi um 08:02
Diesen Post per E-Mail versendenBlogThis!Auf X teilenIn Facebook freigebenAuf Pinterest teilen
Labels: linux

Keine Kommentare:

Kommentar veröffentlichen

Neuerer Post Älterer Post Startseite
Abonnieren Kommentare zum Post (Atom)

Über mich

Andi
Mein Profil vollständig anzeigen

Blog-Archiv

  • ►  2015 (2)
    • ►  Juli (1)
    • ►  Juni (1)
  • ▼  2014 (22)
    • ►  November (2)
    • ►  September (5)
    • ▼  August (15)
      • DSLR freeze - cam reset implemented
      • electrical part: raspi, poe splitter, camera, cam ...
      • shell script automatic captures limited to specifi...
      • start shell script daily at 5:00am
      • allow 'sudo' from browser for script
      • stop linux process from website with php
      • start linux shell script from website with php
      • show linux process status on a website with php
      • linux shell script for endless photo capture with ...
      • show datetime from JPG exif data with php
      • read complete exif data from JPG with php
      • raspberry shall send current IP adress via email
      • sort 'top' output by PID reversed
      • configure wlan settings
      • reboot raspberry
Design "Einfach". Powered by Blogger.