From: grimble@nomail.afraid.org   
      
   On 29/08/12 13:48, Grimble wrote:   
   > On 29/08/12 13:22, Whiskers wrote:   
   >> On 2012-08-28, Grimble wrote:   
   >>> I've just commissioned a new machine that has several USB ports. One of   
   >>> these has an adaptor connected, and I want to set its permissions in a   
   >>> startup script. Unfortunately in three different starts, the address of   
   >>> this adaptor has varied from   
   >>> /dev/bus/usb/005/002 to   
   >>> /dev/bus/usb/002/002   
   Sorry chaps, but this has nothing to do with the device or its drivers -   
   everything works perfectly. What I want to know is why udev or whatever   
   bit of software that controls USB ports doesn't assign the same address   
   to a given port. As a "for instance", the act of unplugging and   
   re-plugging the adaptor caused the address to change from   
   /dev/bus/usb/002/002 to   
   /dev/bus/usb/002/004   
      
   Alternatively: what group to I have to belong to to allow the program   
   the write access that is permitted to group members:   
   [root@handel Scripts]# cd /dev/bus/usb/002   
   [root@handel 002]# ls -l   
   total 0   
   crw-rw-r-- 1 root root 189, 128 Aug 27 17:46 001   
   crw-rw-r-- 1 root root 189, 130 Aug 27 17:46 003   
   crw-rw-rw- 1 root root 189, 131 Aug 30 12:00 004   
   --   
   Grimble   
   Registered Linux User #450547   
   Running 4.6.5 on 2.6.39.4-5.1-desktop kernel.   
   Mandriva Linux release 2011.0 (Official) for x86_64   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|