Mailinglist Archive: opensuse (4054 mails)

< Previous Next >
Re: [SLE] How to make device permissions stick?
  • From: Sunny <sloncho@xxxxxxxxx>
  • Date: Mon, 16 Jan 2006 08:44:22 -0600
  • Message-id: <e7eeb230601160644o6bd0cf3bqd60d94253f260ea6@xxxxxxxxxxxxxx>
On 1/16/06, Peter Sutter <sutterp@xxxxxxxxxxxx> wrote:
> 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
>

The easiest way I can think of is to use k3bsetup utility. There you
have to select "Use burning group". This will set up the right
permissions for the specified group (usualy this is the group
"burning", but you can change it to "disk" if you want wwwrun to run
as a member of the "disk" group). Or, you may set the wwwrun to run as
a user, who is member of the "burning" group.

Cheers


--
--
Svetoslav Milenov (Sunny)

< Previous Next >
Follow Ups
References