uml-utilities conflicts with udev
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
uml-utilities (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: uml-utilities
uml-utilites is somewhat broken when used with udev. It sets permissions on /dev/net/tun with a hack in /etc/network/
#
# why the hell does this need to be done?
#
#chown root:uml-net /dev/net/tun
#chmod 660 /dev/net/tun
This has the inconveniece that as soon as udev loads or unloads a different module (say for a USB flash key) tun permissions immediately return to root:root
The solution is to replace that hack with a udev rules file with the proper permissions:
#/etc/udev/
KERNEL=="tun", GROUP="uml-net", MODE="0660"
Changed in uml-utilities: | |
status: | New → Confirmed |
and even the rules is added it still may not work, check this link https:/ /wiki.ubuntu. com/VirtualboxH ostNetworkingAn dWIFI, and the excerpt.
""" devices/ net/tun so that /net/dev/tun is created (copied apparently) with the correct permissions. (reboot necessary afterwards unless someone has another solution)
UPDATE July 29: it seems that since a few updates (don't know which one unfortunately) the ownership of /dev/net/tun is reverted to root:root after each reboot so we have to chown and chmod everytime. There must be a rule in udev that we can change or create a script and link it in /etc/rc2.d. I am okay to change a udev rule IF it works, so far it does not.
Personally, I changed the ownership of /lib/udev/
sudo chgrp uml-net /lib/udev/ devices/ net/tun devices/ net/tun
sudo chmod g+rw /lib/udev/
"""