Re: permissions below /dev/ across reboots
From: Simo Kauppi (swk_at_nic.fi)
Date: 09/30/05
- Previous message: Emma Hogbin: "Remote install of Debian failing"
- In reply to: Hanspeter Roth: "permissions below /dev/ across reboots"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 30 Sep 2005 14:31:21 +0300 To: debian-user@lists.debian.org
On Thu, Sep 29, 2005 at 01:50:55PM +0200, Hanspeter Roth wrote:
> Hello,
>
> How does one set the permission of /dev/net/tun so that they remain
> across reboots?
> I guess it has something to do with /etc/udev/permissions.rules.
> But there is no manpage on permissions.rules.
>
> -Hanspeter
>
Hi,
The syntax how to set up rules seems to be explained in the man udev. I
have also found some helpful pages with google.
Basically, the udev reads the rule files in the /etc/udev/rules.d/ until
it finds a match. You might want to set up your own file for local
rules, so you don't need to mess with the system default files. To make
sure your local rules get read first, name the file e.g.
010_local.rules.
As an example, you set up the permissions for the /dev/net/tun by adding
a line:
KERNEL=="tun", NAME="net/%k", OWNER="user", GROUP="group", MODE="0666"
which means that for a device whose kernel name is "tun", set the device
name to "/dev/net/tun" (%k = kernel name) with owner "user", group
"group" and permissions crw-rw-rw-.
HTH
Simo
-- :r ~/.signature
-- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
- application/pgp-signature attachment: Digital signature
- Previous message: Emma Hogbin: "Remote install of Debian failing"
- In reply to: Hanspeter Roth: "permissions below /dev/ across reboots"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|