Hi together,
i want to mount /proc/bus/usb with rw for a certain group to use usb under
qemu. This works if i umount && mount /proc/bus/usb but after a reboot all is
gone.
Here are my steps:
1. groupadd -g 120 usb
2. Changing one line in the fstab:
usbfs /proc/bus/usb usbfs defaults,devgid=120,devmode=0664 0 0
3. umount /proc/bus/usb && mount /proc/bus/usb
4. gpasswd -a MYUSER usb
After this steps 'ls -lR /proc/bus/usb' looks good (i delete some unnecessary
lines):
dr-xr-xr-x 2 root root 0 2006-07-05 08:38 001
dr-xr-xr-x 2 root root 0 2006-07-05 08:39 002
dr-xr-xr-x 2 root root 0 2006-07-05 08:39 003
dr-xr-xr-x 2 root root 0 2006-07-05 08:39 004
dr-xr-xr-x 2 root root 0 2006-07-05 08:39 005
-r--r--r-- 1 root root 0 2006-07-05 08:39 devices
/proc/bus/usb/001:
-rw-rw-r-- 1 root usb 43 2006-07-05 08:38 001
/proc/bus/usb/002:
-rw-rw-r-- 1 root usb 43 2006-07-05 08:39 001
/proc/bus/usb/003:
-rw-rw-r-- 1 root usb 43 2006-07-05 08:39 001
-rw-rw-r-- 1 root usb 43 2006-07-05 08:39 002
/proc/bus/usb/004:
-rw-rw-r-- 1 root usb 43 2006-07-05 08:39 001
/proc/bus/usb/005:
-rw-rw-r-- 1 root usb 43 2006-07-05 08:39 001
As i wrote above this works under the same session but if i reboot the pc my
changes are gone:
dr-xr-xr-x 2 root root 0 2006-07-05 08:38 001
dr-xr-xr-x 2 root root 0 2006-07-05 08:39 002
dr-xr-xr-x 2 root root 0 2006-07-05 08:39 003
dr-xr-xr-x 2 root root 0 2006-07-05 08:39 004
dr-xr-xr-x 2 root root 0 2006-07-05 08:39 005
-r--r--r-- 1 root root 0 2006-07-05 08:39 devices
/proc/bus/usb/001:
-rw-r--r-- 1 root root 43 2006-07-05 08:38 001
/proc/bus/usb/002:
-rw-r--r-- 1 root root 43 2006-07-05 08:39 001
/proc/bus/usb/003:
-rw-r--r-- 1 root root 43 2006-07-05 08:39 001
-rw-r--r-- 1 root root 43 2006-07-05 08:39 002
/proc/bus/usb/004:
-rw-r--r-- 1 root root 43 2006-07-05 08:39 001
/proc/bus/usb/005:
-rw-r--r-- 1 root root 43 2006-07-05 08:39 001
Has anyone an idea what i have to change too to get what i want? Or is there
perhaps a better way to do it?
See you, Attila
_______________________________________________
arch mailing list
[email protected]
http://www.archlinux.org/mailman/listinfo/arch