You are not logged in.
Pages: 1
Hi. I seem to be having trouble with audio for my normal user (not root)... it says that it could not asses audio because the user does not have permission. I realize that there is a section in wiki for this where it explains how to enable the user to use audio but my problem is that the audio group doesn't seem to exist.
when I try to
# gpasswd -a herrard audio
it says "unknown usergroup:audio".
Does anyone know how to add a new usergroup for audio?
The only way I was able to get around the audio problem for my normal user was to add it to the root group using KUser but really don't want to do this so it is possible to make a new user group for audio?
p.s. I setup alsa and the sounds work fine for the root user. If it helps, I'm using xfs Arch .7
Thank you
Offline
try
# groupadd audio
or
# man groupadd
good luck
arch + gentoo + initng + python = enlisy
Offline
Hi herrard.
Just add a group 'audio' and make yourself a member of that group. I usually just edit, as root, the file /etc/group. Add a line like:
audio::<unused-group-number>:<your-user-name>
The last colon-separated item makes you a member of the 'audio' group, so don't forget that.
You could also use the 'groupadd' command as root.
Regards,
Win
Offline
oh its that simply.. wow
Ok I'll try that later.
Thanks guys
Offline
it didn't work.. I added the new group but the message still comes up and my normal users still can't use sound
anyway.. this is what i did to make it work
chmod 777 /dev/dsp
thanks for your help though guys
i really appreciate it
Offline
Check your /dev/dsp device
[12:04:47] fubar@ferro:~ $ ls -al /dev/dsp
lrwxrwxrwx 1 root root 9 2004-12-14 03:14 /dev/dsp -> sound/dsp
It's a symlink pointing to sound/dsp.
[12:05:15] fubar@ferro:/dev/sound $ ls -al /dev/sound/dsp
crw-rw---- 1 root sound 14, 3 2004-12-14 03:14 /dev/sound/dsp
The dsp-device belongs to the sound group, not the audio group. If you add your user to that group, it should work without having to chmod 777'ing the device, which could be a security risk.
A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.
Offline
It still doesn't seem to work.
I get this...
[root@MadHatter sound]# ls -al /dev/sound/dsp
crw-rw---- 1 root root 14, 3 1970-01-01 00:00 /dev/sound/dsp
[root@MadHatter sound]# ls -al /dev/dsp
lr-xr-xr-x 1 root root 9 2004-12-18 11:48 /dev/dsp -> sound/dsp
and I made the sound group using
groupadd sound
and manually added the user into /etc/group
sound:x:101:herrard
but I still get the message that this user doesn't have permission to use /dev/dsp.. what do I do now?
I should probably mention that i do not have /etc/gshadow.. this is why I can't edit the group preference of the user using KUser.. does this matter?
Offline
You don't seem to get it: the /dev/snd/dsp device belongs to root:root -> user = root, group = root. It should belong to another group (sound / audio / whatever) and when you add your user to the group /dev/snd/dsp it will work.
Try
chown -v root:sound /dev/snd/dsp
This changes the group of /dev/snd/dsp to "sound".
A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.
Offline
Great it works now... thanks
I got this at first
[root@MadHatter ~]# chown -v root:sound /dev/snd/dsp
chown: cannot access `/dev/snd/dsp': No such file or directory
but I had to change it to /dev/sound/dsp since that was where the file was and it worked... my normal user has sounds now
[root@MadHatter ~]# chown -v root:sound /dev/sound/dsp
changed ownership of `/dev/sound/dsp' to root:sound
Thanks for being patient..[/code]
Offline
I don't mean to be a pain but how come the same problem comes up again after I restart the computer?
I tried doing this a second time
chown -v root:sound /dev/sound/dsp
and the normal user would get access to sounds but after I restart, its the same thing all over again
Is my computer now saving the settings or something?
Offline
of course it comes back after you reboot,
udev creates /dev every time you start it,
you should not use chmod/chown in /dev
set your permissions through udev instead,
add your user to the audio and optical groups
arch + gentoo + initng + python = enlisy
Offline
i see.. i have one problem though.. my udev folder is empty--i don't know how to set the rules for it if there isn't a file to edit
should I copy the files from /dev to /udev?
Is there a link you could direct me to for easy instructions?
Offline
Hi herrard.
You can make the permissions stick in udev very easily, and is clearly documented in the udev Wiki entry:
http://wiki2.archlinux.org/index.php/UdevHowTo
1. Create a personalized permissions file, say:
/etc/udev/permissions.d/00-herrard.permissions
with the line:
dsp*:root:sound:0660
2. These will be the settings on the next reboot. If you want them active immediately, as root, run the following commands:
/etc/start_udev
mount /dev/shm
mount /dev/pts
and your sound should be up and running.
Regards,
Win
Offline
it works now... thanks a lot
Offline
Pages: 1