[opensuse-arm] Add user to 'video' group

Hi, what is the right way to add users to video group automatically? For example, we would need it to run some video tests using /dev/dri/* files.
Guillaume -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org

2013/4/22 Guillaume Gardet <guillaume.gardet@free.fr>: Hi Guillaume,
what is the right way to add users to video group automatically?
The right way is to not do that at all :)
I think the way it should work is that logind should determine that you're a locally logged in user and do a setfacl on your device to grant you access in *addition* to those who are in group video. in this case it seems there was no facl set, did logind think that you're locally logged in? Greetings Dirk -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org

Le 23/04/2013 00:34, Dirk Müller a écrit :
Really? On my desktop computer my username is in video group.
How to check? Guillaume
Greetings Dirk
-- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org

On 23/04/13 15:54, Guillaume Gardet wrote:
# grep video /etc/group video:x:33:lancelot,andrea,gdm You can edit /etc/group and add users like I did here for users lancelot,andrea. Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Senior Staff Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org

Hi Guillaume,
Really? On my desktop computer my username is in video group.
Probably not from out of the box though, that would be news.
crw-rw----+ 1 root video 226, 0 avril 22 16:38 card0 crw-rw---- 1 root video 226, 64 avril 22 16:38 controlD64
btw, you do have an ACL set, sorry that I missed that while reading the mail on the phone, see the '+' in this line: crw-rw----+ 1 root video 226, 0 avril 22 16:38 card0 so you can do something like: getfacl /dev/dri/card0 which should print then: # file: dev/dri/card0 # owner: root # group: video user::rw- user:dmueller:rw- I think your problem is that controlD64 does not have the ACL set as well. correct? Greetings, Dirk -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org

Le 23/04/2013 18:53, Dirk Müller a écrit :
It is openSUSE 12.2 and I do not remember if I added my username to videogroup.
Here are the getfacl results:
So, /dev/mali0 and /dev/dri/controlD64 have not the ACL set. I guess an udev rule should do the trick. Guillaume
Greetings, Dirk
-- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org

2013/4/22 Guillaume Gardet <guillaume.gardet@free.fr>: Hi Guillaume,
what is the right way to add users to video group automatically?
The right way is to not do that at all :)
I think the way it should work is that logind should determine that you're a locally logged in user and do a setfacl on your device to grant you access in *addition* to those who are in group video. in this case it seems there was no facl set, did logind think that you're locally logged in? Greetings Dirk -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org

Le 23/04/2013 00:34, Dirk Müller a écrit :
Really? On my desktop computer my username is in video group.
How to check? Guillaume
Greetings Dirk
-- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org

On 23/04/13 15:54, Guillaume Gardet wrote:
# grep video /etc/group video:x:33:lancelot,andrea,gdm You can edit /etc/group and add users like I did here for users lancelot,andrea. Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Senior Staff Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org

Hi Guillaume,
Really? On my desktop computer my username is in video group.
Probably not from out of the box though, that would be news.
crw-rw----+ 1 root video 226, 0 avril 22 16:38 card0 crw-rw---- 1 root video 226, 64 avril 22 16:38 controlD64
btw, you do have an ACL set, sorry that I missed that while reading the mail on the phone, see the '+' in this line: crw-rw----+ 1 root video 226, 0 avril 22 16:38 card0 so you can do something like: getfacl /dev/dri/card0 which should print then: # file: dev/dri/card0 # owner: root # group: video user::rw- user:dmueller:rw- I think your problem is that controlD64 does not have the ACL set as well. correct? Greetings, Dirk -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org

Le 23/04/2013 18:53, Dirk Müller a écrit :
It is openSUSE 12.2 and I do not remember if I added my username to videogroup.
Here are the getfacl results:
So, /dev/mali0 and /dev/dri/controlD64 have not the ACL set. I guess an udev rule should do the trick. Guillaume
Greetings, Dirk
-- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
participants (3)
-
Dirk Müller
-
Guillaume Gardet
-
Sid Boyce