From: Mark H. <mar...@xs...> - 2005-11-11 16:29:08
|
Hi, I've been running multi-console for a while now (sometimes ruby, sometimes only with xorg patches), but would like to solve one final issue. Normally when using a single console, the first user to login gets all kinds of devices assigned, and thus is able to use /dev/cdrom for instance or the audio devices /dev/dsp, /dev/mixer, /dev/snd/* and /dev/sound/*. When multiple users being able to log in at the same time, I want this behaviour to change. Simply disabling the default behaviour is possible, and thus setting these devices to sane defaults is already possible. (see http://www.redhat.com/docs/manuals/linux/RHL-7-Manual/ref-guide/s1-sysadmin-console-access.html ) However ideally, I would want the proper devices to be assigned to the proper user (e.g. if user john is logged onto head1, I want /dev/dsp1 and /dev/mixer1 assigned ownership to john, without interfering with user jane on head2 who has assigned /dev/dsp2 and /dev/mixer2). Anyone have an idea how to get this done? Can I do this using the /etc/X11/gdm/PostLogin and /etc/X11/gdm/PostSession scripts or is there a better way? Greetings, Mark. |