[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: permissions below /dev/ across reboots



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

Attachment: signature.asc
Description: Digital signature


Reply to: