DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am having some troubles with sound under jessie 64bits. The problem is certainly due to insufficient permissions, but I am looking for a proper way to solve it.
Actually when running xfce4 mixer it says
Quote:
GStreamer was unable to detect any sound devices. Some sound system specific GStreamer packages may be missing. It may also be a permissions problem.
If I run it as root, it works fine and I can hear sound. If I add my user to the audio group sound works as well. The problem is that I have an ldap with couple hundred users and I don't think that adding them all is the proper way to do the thing.
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628
Rep:
I suspect if you check the file permissions on the working box they will be the same.
Users that use sound should be members of the audio group. This should be, I think, set up by default, if the user is created when the system was installed.
Groups control the access to the system by putting them in groups. You can add groups of your own too.
I see no way that having permission to use audio is going to be a threat as long as the users are not part of the admin group and certainly not root group or sudo group.
They can mess with the user land configuration as much as they want and it will only effect them. Any configuration they do will go in the appropriate ~/.foo file in their /home/<user name> directory and only be activated when they are logged in and will only effect them.
Other users will be using the user configuration settings that they set up from those same files in their /home/user directory.
I suspect if you check the file permissions on the working box they will be the same.
The permissions are the same on all the boxes. The group audio has no members on any of the machines. Although on couple of them I have sound and on the rest no sound at all.
Quote:
Originally Posted by widget
Users that use sound should be members of the audio group. This should be, I think, set up by default, if the user is created when the system was installed.
All my users are ldap users, created dynamically. This means that each time that I add a new user, I should also modify the /etc/group file on every single machine. This is a bit tedious.
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628
Rep:
That would be tedious but if your boxes are all connected to the same control box all the time you should be able to pretty easily build a sed command that would modify all the files at once.
I have a splitting headache right now and not about to even think how that would be set up. But if you mount all your systems in the box you manage them from in /mnt you should be able to set up a command to add what you need
Might be easier with cat but I really can't think straight right now.
EDIT;
Nope can't think. The easy thing to do is a series command for addgroup or adduser I suspect.
Seems like you should be able to configure adduser to add new users to the group audio when you create the user.
It's not very logical though. As I've mentioned, there are machines with no users in the audio group and with working sound. After exactly the same installation process, there other machines with no sound. My question is how to get to know the reason for working or not working of a device (given that on the machines, on which sound is not working as user, it is indeed working as super-user).
The group audio has no members on any of the machines. Although on couple of them I have sound and on the rest no sound at all.
The problem is that when you created users you didn't add specify users groups. What command did you use to add the user? Did you use useradd or adduser, because adduser is interactive & prompts for group.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.