title: Failed to open /dev/bus/usb/001/007: Permission denied for usb device
body: <p>I am trying to connect usb device from webpage using webusb api ,but i cannot open the paired device using the below code.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head allow="usb"&gt;&lt;/head&gt;
      &lt;body&gt;
     &lt;input type="submit" onclick="connect()" value="connect"/&gt;
  
      &lt;script&gt;
      var device;
      function setup(device) {
          alert(device.productName+" open");
          return device.open()
  
          .then(() =&gt; device.selectConfiguration(1))
          .then(() =&gt; device.claimInterface(0))
      }
  
      function connect() {
          if (device == null) {
              navigator.usb.requestDevice({ filters: [{ vendorId : 2352 }] })
              .then(selectedDevice =&gt; {
                  device = selectedDevice;
                  console.log(device);
                  return setup(device);
              })
  
              .catch(error =&gt; { console.log(error); })
          }
  
  
      }
      navigator.usb.getDevices()
      .then(devices =&gt; {
          if (devices.length &gt; 0) {
              device = devices[0];
              return setup(device);
          }
      })
      .catch(error =&gt; { console.log(error); });
      &lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Its shows </p>
  
  <blockquote>
    <p>DOMException Access denied   cannot open usb after paired</p>
  </blockquote>