Alberto,<br><br>You could write a udev rule like this:<br><br>cat > /etc/udev/rules.d/99-ttyACM.rules << EOF<div>KERNEL=="ttyACM[0-9]",MODE="0666"</div><div>EOF</div><div><br></div><div>This will set rw access to ttyACM devices for everyone.<br>
If you think that's too permissive, you could do something like:</div><div><br></div><div>cat > /etc/udev/rules.d/99-ttyACM.rules << EOF<div>SYSFS{idVendor}=="vendor_id",SYSFS{idProduct}=="product_id",KERNEL=="ttyACM[0-9]",MODE="0666"</div>
<div>EOF</div><div><br></div><div>Again, this will set rw permissions for everyone, but only to ttyACM devices specified by its vendor and product id. I.e, for Texas Instruments USB-serial converter, idVendor=="0451" and idProduct=="3410".</div>
<div><br></div><div>You'll have to do this on every laptop, but only once.<br><br>I'm curious about the platform you're using... is it LEGO Mindstorms or maybe Arduino? Anyway... which aplication have you adapted for the XO?<br>
We're working on some piltos in Uruguay for which we bought a bunch of those, but haven't arrived yet. I think it would be very productive for our deployments if we keep in touch. Which one are you working on?</div>
<div><br></div><div>Cheers,<br>Emiliano</div><div><br></div><br><div class="gmail_quote">On Wed, Jun 23, 2010 at 11:03 AM, Martin Langhoff <span dir="ltr"><<a href="mailto:martin.langhoff@gmail.com">martin.langhoff@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Wed, Jun 23, 2010 at 8:03 AM, Alberto Arruda de Oliveira<br>
<<a href="mailto:alberto.a.oliv@gmail.com">alberto.a.oliv@gmail.com</a>> wrote:<br>
> But now, I'm facing another problem regarding the permissions olpc user has<br>
> to access diferent dispositives on XO.<br>
<br>
</div>It sounds like very interesting software! The problem you are facing<br>
is normally resolved by adding a bit of "policy" for a tool called<br>
"PolicyKit".<br>
<br>
I am not an expert on PolicyKit at all -- so I don't know what the<br>
exact answer is. Hopefully someone who knows & understands PK can<br>
help!<br>
<br>
cheers,<br>
<br>
<br>
<br>
m<br>
--<br>
<a href="mailto:martin.langhoff@gmail.com">martin.langhoff@gmail.com</a><br>
<a href="mailto:martin@laptop.org">martin@laptop.org</a> -- School Server Architect<br>
- ask interesting questions<br>
- don't get distracted with shiny stuff - working code first<br>
- <a href="http://wiki.laptop.org/go/User:Martinlanghoff" target="_blank">http://wiki.laptop.org/go/User:Martinlanghoff</a><br>
_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a></blockquote></div>
</div>