tags 669058 patch
thanks

Hi,

I studied this problem a bit closer and found the following:
In the source code arduino-1.0+dfsg/debian/patches/permission_fix.patch
the popup is called if the command "groups $USER" does not contain the
group dialout.

I checked this command and found the it gives the result:
  foo@workstation00:~$ groups foo
  foo : foo
However just "groups" gives:
  foo@workstation00:~$ groups
  foo dialout

So the "groups $USER" seems to list only the groups found by looking
up LDAP, and the group dialout assigned by PAM on login seems to be
skipped.  From man 1 groups:

SYNOPSIS
       groups [OPTION]... [USERNAME]...

DESCRIPTION
       Print  group memberships for each USERNAME or, if no USERNAME
       is specified, for the current process (which may differ if the
       groups database has changed).

It is not clear to me how to solve that.  Perhaps it is sufficient to
ask only for the group membersips of the process i.e. remove the
$USERNAME, which would list the dialout group and anything should be
fine.

Best regards,

     Andi


trivial patch (arduino-1.0+dfsg/debian/patches/permission_fix.patch):

-+       if ! groups $USER | grep -q " : .*\b$group\b"; then
++       if ! groups | grep -q "\b$group\b"; then


--

----------------------------------

GPG key: 4096R/617B586D 2010-03-22 Andreas B. Mundt--<[email protected]>
                                   Andreas B. Mundt--<[email protected]>

============================================================================



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to