idud Posted April 15, 2004 Report Share Posted April 15, 2004 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. Quote Link to comment Share on other sites More sharing options...
aRTee Posted April 15, 2004 Report Share Posted April 15, 2004 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). Quote Link to comment Share on other sites More sharing options...
idud Posted April 17, 2004 Author Report Share Posted April 17, 2004 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? Quote Link to comment Share on other sites More sharing options...
aRTee Posted April 18, 2004 Report Share Posted April 18, 2004 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. Quote Link to comment Share on other sites More sharing options...
idud Posted April 19, 2004 Author Report Share Posted April 19, 2004 Hey, great....!Great...! It's working now, thanx a lot man. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.