Gentoo Archives: gentoo-dev

From: Martin Schlemmer <azarah@g.o>
To: "Yrjö Hatakka" <yrjo.hatakka@×××××××.fi>
Cc: Bauno <bauno@××××××.it>, Gentoo-Dev <gentoo-dev@g.o>
Subject: Re: [gentoo-dev] CDRW permissions and devfsd
Date: Mon, 02 Sep 2002 13:11:21
Message-Id: 1030990014.7195.84.camel@nosferatu.lan
In Reply to: Re: [gentoo-dev] CDRW permissions and devfsd by "Yrjö Hatakka"
1 On Mon, 2002-09-02 at 19:15, Yrjö Hatakka wrote:
2 > -----BEGIN PGP SIGNED MESSAGE-----
3 > Hash: SHA1
4 >
5 > On Saturday 31 August 2002 04:07, Bauno wrote:
6 >
7 > >
8 > > I have "sg" compiled as module, and solved the problem with this entry in
9 > > devfsd.conf (may be wrapped):
10 > >
11 > > LOOKUP ^sg.*$ MODLOAD ACTION sg
12
13 Tells devfs to load the 'sg' module if /dev/sg* is accessed
14
15 > > REGISTER ^scsi/host.*/bus.*/target.*/lun.*/generic PERMISSIONS
16 > > root.disk 660
17
18 Basically just set the permissions to 0660, and ownership to root.disk
19 when /dev/sg* is registered (the generic scsi module loaded ..)
20
21 > >
22 > > It works, even if I'm not sure why :)
23 >
24 > Yes, confirmed :) this really works, thanx
25 >
26
27 We have the PERMISSIONS entry in our /etc/devfsd.conf:
28
29 -----------------------cut-------------------------------------
30 # Give the cdrw group write permissions to /dev/sg0
31 # This is done to have non root user use the burner (scan the scsi bus)
32 #REGISTER ^sg0$ PERMISSIONS root.cdrw 660
33 ---------------------------------------------------------------
34
35 Just commented by default. As I always have my generic scsi into
36 kernel, I am not sure that first line is really needed, as there is an
37 alias in /etc/modules.devfs. Will try to find the time though to
38 verify it.
39
40
41
42 > - --
43 > Linux cartman.linux.home 2.4.19-gentoo-r7 #1 Fri Jul 5 00:45:50 EEST 2002 i686
44 > AuthenticAMD
45 > -----BEGIN PGP SIGNATURE-----
46 > Version: GnuPG v1.0.7 (GNU/Linux)
47 >
48 > iD8DBQE9c5yx6BYkNNMD2uARAuTTAJkBLqDToZwsXElwh8j8F3mZvt1b+QCfTuE+
49 > nZmMDi6fKsR2srUtsWfSOYo=
50 > =VQBk
51 > -----END PGP SIGNATURE-----
52 >
53 >
54 > _______________________________________________
55 > gentoo-dev mailing list
56 > gentoo-dev@g.o
57 > http://lists.gentoo.org/mailman/listinfo/gentoo-dev
58 --
59
60 Martin Schlemmer
61 Gentoo Linux Developer, Desktop Team Developer
62 Cape Town, South Africa

Replies

Subject Author
Re: [gentoo-dev] CDRW permissions and devfsd Bauno <bauno@××××××.it>