Skip to contentSkip to conversation

Fix up 'broken' permissions

PATCH New Daniel Drake 1 participant 1 message Jun 2, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix up 'broken' permissions

I'm not sure whether this is intentional, but 2 rules specify a group and permissions of 0600 (so the group change effectively does nothing, unless the permissions were to be changed).

The one dealing with usb serial is most important here.. Many palm-style devices use ttyUSB nodes to communicate with the host computer. Currently, the user can't use the nodes, even when in the tty group.

etc/udev/gentoo/udev.rules renamed from etc/udev/gentoo/udev.rules.orig +2 -2
@@ -137,11 +137,11 @@ KERNEL="sequencer",		NAME="sound/%k", SY
 KERNEL="sequencer[0-9]*",	NAME="sound/%k", SYMLINK="%k", GROUP="audio"
 
 # tty devices
-KERNEL="console",	NAME="%k", GROUP="tty", MODE="0600"
+KERNEL="console",	NAME="%k", GROUP="tty", MODE="0660"
 KERNEL="tty",		NAME="%k", GROUP="tty", MODE="0666"
 KERNEL="tty[0-9]*",	NAME="vc/%n",  SYMLINK="%k", GROUP="tty"
 KERNEL="ttyS[0-9]*",	NAME="tts/%n", SYMLINK="%k", GROUP="tty"
-KERNEL="ttyUSB[0-9]*",	NAME="tts/USB%n", GROUP="tty", MODE="0600"
+KERNEL="ttyUSB[0-9]*",	NAME="tts/USB%n", GROUP="tty", MODE="0660"
 KERNEL="ippp0",		NAME="%k", GROUP="tty"
 KERNEL="isdn*",		NAME="%k", GROUP="tty"
 KERNEL="dcbri*",	NAME="%k", GROUP="tty"