Jump to content

/dev/dsp ownership


idud
 Share

Recommended Posts

Hi, It's so good to know that Mdk-10-CE can display multiple desktop with different user at a time (or maybe I'm a little late because 9.2 have it too, isn't it?).

 

But I a little disappointed when log in to the second desktop and have an error message said that device /dev/dsp is not accessible. The device turn it's ownership to user that first login to the machine. Can somebody help make a script so the device is all the time owned by root and have permission 666?

 

Thank you.

Link to comment
Share on other sites

The best thing to do is to change the permissions on that device to 660 which means that both the owner and the group (audio) can use it.

This is done in /etc/msec somewhere, will check which file, not hard but I'm not at my machine (I actually use this).

 

Then you can add all users you always want to enable to use the audio devices to the group audio, for instance with addgroup

man addgroup

(if I recall correctly - could be something similar)

or with the GUI userdrake, via mcc -> system -> manage users (or so).

Link to comment
Share on other sites

It's not working. I've added this line into the /usr/share/msec/perm.3 (because I use security level 3):

 

/dev/sound/* nobody.audio 666

 

When I'm executing

 

# msec 3

 

It was all OK, all files in /dev/sound (/dev/dsp is just a link to /dev/sound/dsp) owned by nobody:audio and have permission 666. But just right after root logged out, the files permission changes to 600 and the owner is the last logged into the system.

 

Anybody experienced about this?

Link to comment
Share on other sites

The file I changed (this is on my Mandrake 9.2 audio server) is

/etc/security/console.perms

 

It starts with:

# /etc/security/console.perms
#
# This file determines the permissions that will be given to priviledged
# users of the console at login time, and the permissions to which to
# revert when the users log out.

 

and inside there is:

<sound>=/dev/dsp* /dev/audio* /dev/midi* \
       /dev/mixer* /dev/sequencer* \
       /dev/sound/* /dev/snd/* /dev/beep \
       /dev/admm* \
       /dev/adsp* /dev/aload* /dev/amidi* /dev/dmfm* \
       /dev/dmmidi* /dev/sndstat

 

and what I changed is this line later on:

<console>  0660 <sound>      0660 root.audio

which used to have 0600 instead of the 0660 it has now.

 

I added the user 'music' that I use to play the music from the server to the group audio, you can do that with userdrake.

This way, that one user can always use the audio devices. You can just add any other user to that group too, which will take care of things.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...