<div>Well on this box, QNAP TS219, ARM processor, which runs with a stripped version of linux, the apache daemon runs as the httpdusr and is pretty much limited on the rights that it has within the system. As I noticed there is another discussion now on pretty much the same topic, users that have no rights to access the peripherals, unless given specific rights to do so, but on this box is pretty much impossible, from my point of view.</div>


<div> </div>
<div>So in order to overcome this obstacle, I added a telnet class, if I can call it this way so I am running the commands through telnet class with admin rights ... at the moment my scanner is not fully supported (I am already in contact with one of the devs who&#39;s going to look into this as soon as possible) so I cannot fully test this at the moment. But the errors are gone, so lets hope for the best.</div>


<div> </div>
<div>Cheers,</div>
<div>Cristian.</div>
<div class="gmail_quote"> </div>
<div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">m. allan noah</b> <span dir="ltr">&lt;<a href="mailto:kitno455@gmail.com">kitno455@gmail.com</a>&gt;</span><br>Date: 2011/4/8<br>

Subject: Re: [sane-devel] phpSANE question<br>To: Cristi Lacatus &lt;<a href="mailto:alaskanseaman@gmail.com">alaskanseaman@gmail.com</a>&gt;<br><br><br>how about telling the list, so folks can find the answer in the archives later?<br>

<font color="#888888"><br>allan<br></font>
<div>
<div></div>
<div class="h5"><br>On Thu, Apr 7, 2011 at 11:48 PM, Cristi Lacatus &lt;<a href="mailto:alaskanseaman@gmail.com">alaskanseaman@gmail.com</a>&gt; wrote:<br>&gt; Thanks, Allan ... that was the reason, I should&#39;ve see it earlier, but I<br>

&gt; kept thinking that is something related to the environment where the command<br>&gt; is executed by the web interface and there are some lib or something else<br>&gt; missing.<br>&gt;<br>&gt; Cheers,<br>&gt; Cristian.<br>

&gt;<br>&gt; 2011/4/7 m. allan noah &lt;<a href="mailto:kitno455@gmail.com">kitno455@gmail.com</a>&gt;<br>&gt;&gt;<br>&gt;&gt; I&#39;ve never worked with phpSANE, but I can take a guess. PHP scripts<br>&gt;&gt; run as the apache user, and the apache user does not have permissions<br>

&gt;&gt; to talk to the device files. Run scanimage -L as the user apache runs<br>&gt;&gt; as, and see if that&#39;s true. If so, look to make some udev or hal rule<br>&gt;&gt; changes.<br>&gt;&gt;<br>&gt;&gt; allan<br>&gt;&gt;<br>

&gt;&gt; On Thu, Apr 7, 2011 at 11:01 AM, Cristi Lacatus &lt;<a href="mailto:alaskanseaman@gmail.com">alaskanseaman@gmail.com</a>&gt;<br>&gt;&gt; wrote:<br>&gt;&gt; &gt; Hello,<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; I know this is the dist list for the SANE project, but maybe there is<br>

&gt;&gt; &gt; someone out there that uses phpSANE and can help me out. I am trying to<br>&gt;&gt; &gt; use<br>&gt;&gt; &gt; this on my QNAP NAS, linux flavour with apache 2 and php 5 support, but<br>&gt;&gt; &gt; I<br>&gt;&gt; &gt; keep getting this error message and the resolution field is highlighted<br>

&gt;&gt; &gt; in<br>&gt;&gt; &gt; red.<br>&gt;&gt; &gt; From what I can tell the problem is when the command is being executed,<br>&gt;&gt; &gt; for<br>&gt;&gt; &gt; example when the command &quot;scanimage --help&quot; it&#39;s executed in the CLI,<br>

&gt;&gt; &gt; usually it outputs the help text but it also gives detailed information<br>&gt;&gt; &gt; about the scanners that are connected to the system at that time. When<br>&gt;&gt; &gt; it<br>&gt;&gt; &gt; gets executed by the web interface, it only outputs the help text,<br>

&gt;&gt; &gt; nothing<br>&gt;&gt; &gt; else.<br>&gt;&gt; &gt; I also tried with a different command, &quot;scanimage -L&quot; when executed in<br>&gt;&gt; &gt; the<br>&gt;&gt; &gt; CLI it outputs &quot;device `pixma:04A91746_01760E&#39; is a CANON Canon PIXMA<br>

&gt;&gt; &gt; MP280<br>&gt;&gt; &gt; multi-function peripheral&quot;, when executed through phpSANE, it only<br>&gt;&gt; &gt; outputs<br>&gt;&gt; &gt; &quot;device `pixma:04A91746&#39; is a CANON Canon PIXMA MP280 multi-function<br>

&gt;&gt; &gt; peripheral&quot;. I&#39;m exporting the necessary paths, but that doesn&#39;t help<br>&gt;&gt; &gt; either.<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; Any help will be greatly appreciated?<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; Thanks,<br>

&gt;&gt; &gt; Cristian.<br>&gt;&gt; &gt;<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; --<br>&gt;&gt; &gt; sane-devel mailing list: <a href="mailto:sane-devel@lists.alioth.debian.org">sane-devel@lists.alioth.debian.org</a><br>&gt;&gt; &gt; <a href="http://lists.alioth.debian.org/mailman/listinfo/sane-devel" target="_blank">http://lists.alioth.debian.org/mailman/listinfo/sane-devel</a><br>

&gt;&gt; &gt; Unsubscribe: Send mail with subject &quot;unsubscribe your_password&quot;<br>&gt;&gt; &gt;             to <a href="mailto:sane-devel-request@lists.alioth.debian.org">sane-devel-request@lists.alioth.debian.org</a><br>

&gt;&gt; &gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; --<br>&gt;&gt; &quot;The truth is an offense, but not a sin&quot;<br>&gt;<br>&gt;<br><br><br><br></div></div>--<br>
<div>
<div></div>
<div class="h5">&quot;The truth is an offense, but not a sin&quot;<br></div></div></div><br>