Mailinglist Archive: opensuse (4054 mails)

< Previous Next >
Re: [SLE] How to make device permissions stick?
  • From: Peter Sutter <sutterp@xxxxxxxxxxxx>
  • Date: Tue, 17 Jan 2006 08:42:06 +0800
  • Message-id: <200601170842.07207.sutterp@xxxxxxxxxxxx>
On Monday 16 January 2006 22:44, Sunny wrote:
> 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)

Thanks, Sunny

The burning runs under wwwrun. Assigning a group does not help,
because the file re-sets to
brw------- 1 root disk 3, 0 Oct 2, 2004 /dev/hda
which does not give write access to the group, only to the owner.

Peter


< Previous Next >
Follow Ups
References