Bug 6176

Summary: jack can't start midi because of wrong permissions
Product: Mageia Reporter: Yann COLLETTE <ycollette.nospam>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal    
Version: 2   
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:

Description Yann COLLETTE 2012-05-30 20:33:48 CEST
jack can't start midi because of wrong permissions.

Here are the result of ls -l on /dev/snd

drwxr-xr-x  2 root root       60 mai   30 18:52 by-path/
crw-rw----+ 1 root audio 116,  5 mai   30 18:52 controlC0
crw-rw----+ 1 root audio 116,  4 mai   30 18:52 hwC0D0
crw-rw----+ 1 root audio 116,  3 mai   30 20:27 pcmC0D0c
crw-rw----+ 1 root audio 116,  2 mai   30 20:27 pcmC0D0p
crw-rw----  1 root audio 116,  1 mai   30 18:52 seq
crw-rw----+ 1 root audio 116, 33 mai   30 18:52 timer


To be able to start jack with midi connection, I do a chmod a+rw as a root user.
This hack is temporary because when I reboot linux I must do this step again.
Comment 1 Yann COLLETTE 2012-05-30 22:30:45 CEST
I tested ACL:

[collette@localhost ~]$ getfacl /dev/snd/seq 
getfacl : suppression du premier « / » des noms de chemins absolus
# file: dev/snd/seq
# owner: root
# group: audio
user::rw-
group::rw-
other::---

[collette@localhost ~]$ getfacl /dev/snd/timer
getfacl : suppression du premier « / » des noms de chemins absolus
# file: dev/snd/timer
# owner: root
# group: audio
user::rw-
user:collette:rw-
group::rw-
mask::rw-
other::---

If I plug a midi keyboard in the usb plug, the permission are still the same and I still can't start qjackctl.

After a "touch /dev/snd/seq" as a root user:

[collette@localhost ~]$ getfacl /dev/snd/seq 
getfacl : suppression du premier « / » des noms de chemins absolus
# file: dev/snd/seq
# owner: root
# group: audio
user::rw-
user:collette:rw-
group::rw-
mask::rw-
other::---
Comment 2 Manuel Hiebel 2012-06-17 16:04:26 CEST
another workaround is to add you in the audio group
Comment 3 Yann COLLETTE 2012-06-17 18:04:29 CEST
the 'audio' group is not available is userdrake.

I finally managed to find the good command in command line:

usermod -a -G audio collette

I will disconnect from my session and see if this command solve the problem.
Comment 4 Yann COLLETTE 2012-06-17 18:12:29 CEST
Works for me.
But somebody must add 'audio' group to userdrake to ease the process of adding a user to this group.

YC

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 5 Manuel Hiebel 2012-06-17 22:26:34 CEST
hum strange I have it in mga1, will check more.
Comment 6 Manuel Hiebel 2012-06-17 22:30:08 CEST
And I confirm that it's also available in mga2 for me.