M.Blackmore wrote:
On Fri, 2005-09-30 at 22:31 +0000, Guðlaugur Jóhannesson wrote:
There is a file called logindevperms in /etc/ that changes permissions for the various devices. You should change the permissions on /dev/dsp to 0660.
Alas, this does not appear to exist on my machine! I can create it, of course ... if so, what would be the syntax?
The file is /etc/logindevperm (sorry for the extra s before). If that does not exist, this is the header for my file and an example line # # Configuration file for the pam_devperm module. # # We expect entries with the folowing format: # # - Comments start with a # and extend to the end of the line. # # - Blank lines or lines with only a comment are ignored. # # - All other lines consist of three fields delimited by whitespace: a # login device (/dev/console), an octal permission number (0600), and # a ":"-delimited list of devices (/dev/kbd:/dev/mouse). All device # names are absolute paths. A path that ends in "/*" refers to all # directory entries except "." and "..". # The login device could be also the xdm display (like :0). # # If the tty argument (relative path) matches a login device name # (absolute path), the permissions of the devices in the ":"-delimited # list are set as specified in the second field, and their ownership is # changed to that of the uid and gid arguments. # :0 0600 /dev/cdrom:/dev/cdrom1:/dev/cdrom2:/dev/cdrom3
But if not that name, there must be the same function somewhere ... where would it be?
You could also take a look at udev, see thread about Device Permissions on this list
I realised though that I'm being thick about the version, on the machine in question which the kids use it is of course suse 9.3. I'd upgraded from clean to 9.3 on that one, and 10 on "my" box. Doh! The trouble with KVMs...
This file is also on my 9.3 box -- Guðlaugur Jóhannesson http://www.hi.is/~gudlaugu Phone: +354 849 8405