Problem: Apache as root on 1 file (visudo)
|
27th Jan, 2014, 03:09 AM
Post: #1
|
|||
|
|||
Apache as root on 1 file (visudo)
hello,
i got a problem i need apache to have acces to 2 scripts ( /home/xbian/lights/elro & /home/xbian/lights/action {there is a duplicate in /home/xbian/wiringPi/examples/lights}) when adding this to the visudo file www-data ALL=(ALL) NOPASSWD: /home/xbian/wiringPi/examples/lights/./ it doesn't work, it can't run the scripts, so i tryed: www-data ALL=(ALL) NOPASSWD: /home/xbian/wiringPi/examples/lights/ now im on : www-data ALL=NOPASSWD: ALL and still doesn't work i prefer the link to the file sinds it is more safe but can't get it to work... luke |
|||
27th Jan, 2014, 04:57 AM
Post: #2
|
|||
|
|||
RE: Apache as root on 1 file (visudo)
Just use pilight
pilight - modular domotica solution
|
|||
27th Jan, 2014, 05:02 AM
Post: #3
|
|||
|
|||
RE: Apache as root on 1 file (visudo) | |||
27th Jan, 2014, 06:18 AM
Post: #4
|
|||
|
|||
Re: Apache as root on 1 file (visudo)
Did you even took the effort to check the pilight website?
pilight - modular domotica solution
|
|||
27th Jan, 2014, 03:10 PM
Post: #5
|
|||
|
|||
RE: Apache as root on 1 file (visudo) | |||
27th Jan, 2014, 07:51 PM
Post: #6
|
|||
|
|||
RE: Apache as root on 1 file (visudo)
- The list of brands can be found on the main page on the right. Can't be clearer.
- The last blog post is about the webinterface. - The frontpage message is all about what pilight is (including it's webinterface). - The second to last blog post is about how to switch lights from the command line. You can't be serious when you say you took some effort. pilight - modular domotica solution
|
|||
3rd Feb, 2014, 12:23 PM
Post: #7
|
|||
|
|||
RE: Apache as root on 1 file (visudo)
@lukeg01
www-data ALL= NOPASSWD: /home/xbian/wiringPi/examples/lights and command to run it (issued by apache) needs to be : "sudo /home/xbian/wiringPi/examples/lights" Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
5th Feb, 2014, 06:38 AM
Post: #8
|
|||
|
|||
RE: Apache as root on 1 file (visudo)
(3rd Feb, 2014 12:23 PM)mk01 Wrote: @lukeg01 Still doesn't work... Take a look at my PHP page, I think it goes wrong there PHP Code: <?php What I use in terminal= /home/xbian/wiringPi/examples/lights/elro 22 A on |
|||
5th Feb, 2014, 06:57 AM
Post: #9
|
|||
|
|||
RE: Apache as root on 1 file (visudo)
@mk01, shouldn't you be promoting pilight as a favor
@lukeg01, still didn't hear from you why pilight doesn't suit your needs. pilight - modular domotica solution
|
|||
5th Feb, 2014, 07:10 AM
Post: #10
|
|||
|
|||
RE: Apache as root on 1 file (visudo) | |||
5th Feb, 2014, 07:26 AM
Post: #11
|
|||
|
|||
RE: Apache as root on 1 file (visudo)
I never heard any user that had sender problems? It's wierd that you want a system you understand but i only read questions here on how to get it to work
Did you read the tutorials? http://www.pilight.org/post/controlling-radio-outlets pilight - modular domotica solution
|
|||
5th Feb, 2014, 07:32 AM
Post: #12
|
|||
|
|||
RE: Apache as root on 1 file (visudo)
(5th Feb, 2014 07:26 AM)CurlyMo Wrote: I never heard any user that had sender problems? It's wierd that you want a system you understand but i only read questions here on how to get it to work I found it @ the Dutch Tweakers http://gathering.tweakers.net/forum/list_messages/1556119 Says it written by you? |
|||
5th Feb, 2014, 08:09 AM
Post: #13
|
|||
|
|||
RE: Apache as root on 1 file (visudo)
Who me?
pilight - modular domotica solution
|
|||
5th Feb, 2014, 08:12 AM
Post: #14
|
|||
|
|||
RE: Apache as root on 1 file (visudo) | |||
5th Feb, 2014, 08:31 AM
Post: #15
|
|||
|
|||
RE: Apache as root on 1 file (visudo)
A new LPF will be released soon, so be patient and follow the tweakers topic.
pilight - modular domotica solution
|
|||
« Next Oldest | Next Newest »
|