Jump to content

setting permissions of /dev/net/tun across reboot


twelvegates
 Share

Recommended Posts

How can one set the access permissions of /dev/net/tun accross reboots?

I've changed the "tun" entry in /etc/udev/rules.d/50-mdk.rules to read like this:

KERNEL="tun",                                   SYMLINK="net/%k",  MODE="0666"

But the permission is 0600 after reboot nevertheless.

 

 

[moved from Software by spinynorman]

Link to comment
Share on other sites

Put your chmod command for the device file at the end of /etc/rc.d/rc.local. That's the easiest way to do it without tracing through everything to see if anything is changing the perms back. Rc.local is the last init script to run so nothing else should mess with the perms.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...