Mailinglist Archive: opensuse (4054 mails)

< Previous Next >
How to make device permissions stick?
  • From: Peter Sutter <sutterp@xxxxxxxxxxxx>
  • Date: Mon, 16 Jan 2006 18:28:35 +0800
  • Message-id: <200601161828.35599.sutterp@xxxxxxxxxxxx>
I have a SuSE V9.2 Linux system with a dvd burner on /dev/hda. There
is a web page based on a php script that allows users to specify
directories to upload and burn to the dvd. To do this, wwwrun needs
to have r/w access to /dev/hda. So I changed the permissions with
chmod 666 /dev/hda. A ls -ls /dev/hda shows
brw-rw-rw- 1 root disk 3, 0 Oct 2 2004 /dev/hda
After the system is re-booted, the device permissions are back to
brw------- 1 root disk 3, 0 Oct 2 2004 /dev/hda

I stuck the line
/dev/hda root:disk 666
into /etc/permissions, in the hope that this will fix the problem.
Unfortunately this does not work either, i.e. after a re-boot, the
permissions are back to
brw------- 1 root disk 3, 0 Oct 2 2004 /dev/hda

Running SuSEconfig --module permissions fixes the problem, until the
next boot.

How is this done correctly? Which script on startup resets the
device permission?

Thanks for your help

Peter


< Previous Next >