Re: GDM configuration: give users right to use /dev/dsp



Paul,

Take a look at /etc/security/console.perms (man 5 console.perms)

When a user logs into the console, permissions are changed on
each file listed in the classes.  When the user logs out, the
permissions and ownership are restored to whatever the
permission definitions section has listed.

My console.perms looks like this:

#################################################
# file classes -- these are regular expressions
<console>=tty[0-9][0-9]* :[0-9]\.[0-9] :[0-9]
<xconsole>=:[0-9]\.[0-9] :[0-9]

# device classes -- these are shell-style globs
<floppy>=/dev/fd[0-1]*
<sound>=/dev/dsp* /dev/audio* /dev/midi* \
        /dev/mixer* /dev/sequencer
<cdrom>=/dev/cdrom /dev/cdwriter
<pilot>=/dev/pilot
<jaz>=/dev/jaz
<zip>=/dev/zip
<scanner>=/dev/scanner
<fb>=/dev/fb /dev/fb[0-9]*
<kbd>=/dev/kbd
<joystick>=/dev/js*
<v4l>=/dev/video* /dev/radio* /dev/winradio* /dev/vtx*
/dev/vbi*
<gpm>=/dev/gpmctl
<modem>=/dev/ttyS0
<sg>=/dev/sga /dev/sgb

# permission definitions
<console>  0660 <floppy>    0660 root.floppy
<console>  0600 <sound>     0640 root.sys
<console>  0600 <cdrom>     0600 root.disk
<console>  0600 <pilot>     0660 root.tty
<console>  0600 <jaz>       0660 root.disk
<console>  0600 <zip>       0660 root.disk
<console>  0600 <scanner>   0600 root
<console>  0600 <fb>        0600 root
<console>  0600 <kbd>       0600 root
<console>  0600 <joystick>  0600 root
<console>  0600 <v4l>       0600 root
<console>  0700 <gpm>       0700 root
<console>  0600 <modem>     0660 root.ppp
#################################################

Let me know if you need more help.


-- Juan


On Thu, 30 Nov 2000, Paul E Johnson wrote:

> Date: Thu, 30 Nov 2000 22:34:26 -0600
> From: Paul E Johnson <pauljohn ukans edu>
> To: "gnome-list gnome org" <gnome-list gnome org>
> Subject: GDM configuration: give users right to use /dev/dsp
> 
> On RedHat, there is some RPM that keeps getting upgraded that sets the
> permissions on /dev/dsp back to 600, so users can't play mp3's.  I asked
> locally about it, and xdm users said they have settings in a file called
> GiveConsole where permission can be granted for things like that.  
> 
> Is there an equivalent setting for GDM, so I can give users the right to
> use /dev/dsp?
> 
> -- 
> Paul E. Johnson                       email: pauljohn ukans edu
> Dept. of Political Science            http://lark.cc.ukans.edu/~pauljohn
> University of Kansas                  Office: (785) 864-9086
> Lawrence, Kansas 66045                FAX: (785) 864-5700
> 
> _______________________________________________
> gnome-list mailing list
> gnome-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-list





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]