[Sugar-devel] Permission problems and acessing usb dispositive
Alberto Arruda de Oliveira
alberto.a.oliv at gmail.com
Wed Jun 23 17:09:12 EDT 2010
Hello Emiliano,
Thanks for the answer! Unfortunately, it's not the solution we are looking
for, since it still involves the user doing something ( in this case,
writing the udev rule ) to make it work. We're looking for a way to do it
just by running the activity itself.
Since you're interested, here's a better description of the project I'm
working on, following this link
http://sites.google.com/site/josuejgramos/home/pedagogical-robotics
The aplication I'm adapting is Blocos, which is described better following
the link. Here's also the sourceforge page of our project, where you can
download it and see/test it yourself!
http://br-gogo.sourceforge.net/
Thank you again,
Alberto Arruda de oliveira
2010/6/23 Emiliano Pastorino <epastorino at plan.ceibal.edu.uy>
> Alberto,
>
> You could write a udev rule like this:
>
> cat > /etc/udev/rules.d/99-ttyACM.rules << EOF
> KERNEL=="ttyACM[0-9]",MODE="0666"
> EOF
>
> This will set rw access to ttyACM devices for everyone.
> If you think that's too permissive, you could do something like:
>
> cat > /etc/udev/rules.d/99-ttyACM.rules << EOF
>
> SYSFS{idVendor}=="vendor_id",SYSFS{idProduct}=="product_id",KERNEL=="ttyACM[0-9]",MODE="0666"
> EOF
>
> 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".
>
> You'll have to do this on every laptop, but only once.
>
> 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?
> 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?
>
> Cheers,
> Emiliano
>
>
> On Wed, Jun 23, 2010 at 11:03 AM, Martin Langhoff <
> martin.langhoff at gmail.com> wrote:
>
>> On Wed, Jun 23, 2010 at 8:03 AM, Alberto Arruda de Oliveira
>> <alberto.a.oliv at gmail.com> wrote:
>> > But now, I'm facing another problem regarding the permissions olpc user
>> has
>> > to access diferent dispositives on XO.
>>
>> It sounds like very interesting software! The problem you are facing
>> is normally resolved by adding a bit of "policy" for a tool called
>> "PolicyKit".
>>
>> I am not an expert on PolicyKit at all -- so I don't know what the
>> exact answer is. Hopefully someone who knows & understands PK can
>> help!
>>
>> cheers,
>>
>>
>>
>> m
>> --
>> martin.langhoff at gmail.com
>> martin at laptop.org -- School Server Architect
>> - ask interesting questions
>> - don't get distracted with shiny stuff - working code first
>> - http://wiki.laptop.org/go/User:Martinlanghoff
>> _______________________________________________
>> Sugar-devel mailing list
>> Sugar-devel at lists.sugarlabs.org
>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sugarlabs.org/archive/sugar-devel/attachments/20100623/ed10dbb2/attachment.htm
More information about the Sugar-devel
mailing list