[arch-general] udev-139 and file permissions of /dev/net/tun

Attila attila at invalid.invalid
Tue Mar 10 15:42:40 EDT 2009


On Dienstag, 10. März 2009 20:05 Gerardo Exequiel Pozzi wrote:

> The tun dev is statically created, and the perms are adjusted in
> /lib/udev/rules.d/50-udev-default.rules then if you need to adjust these
> perms make a file >50 in /etc/udev/rules.d/ like this:

Oh, i forgot to post the whole line from my rules file and that is why i'm in
hope that i can use a number <50.

> [root at arch32 ~]# cat /etc/udev/rules.d/99-myperms.rules
> KERNEL=="tun", NAME="net/%k", MODE="0660", GROUP="network"

I use the same as you but append OPTIONS="last_rule" at the end of the line in
my /etc/udev/rules.d/01-attila.rules:

KERNEL=="tun", NAME="net/%k", MODE="0660", \
 GROUP="network", OPTIONS="last_rule"

> [root at arch32 ~]# ls -l /dev/net/tun
> crw-rw-rw- 1 root root 10, 200 2009-03-07 21:43 /dev/net/tun
> [root at arch32 ~]# modprobe tun
> [root at arch32 ~]# ls -l /dev/net/tun
> crw-rw---- 1 root network 10, 200 2009-03-07 21:43 /dev/net/tun

Our results be the same so i hope the numbering of the file is not the
problem.

See you, Attila



More information about the arch-general mailing list