error: insufficient permissions for device

简介: error: insufficient permissions for device

产生场景

$ adb shell
error: insufficient permissions for device: user in plugdev group; are your udev rules wrong?
See [http://developer.android.com/tools/device.html] for more information点击复制复制失败已复制


产生原因

解决方案

首先查看插入的 USB 设备的 ID 号:

$ lsusb
Bus 002 Device 007: ID 2cb7:0a06 Fibocom Wireless Inc. FM650 Module点击复制复制失败已复制


接下来进入 /etc/udev/rules.d/ 文件夹下,新建规则文件:

$ cd /etc/udev/rules.d/
$ sudo vim 51-fm650.rules点击复制复制失败已复制


提示

规则文件命名规则: ${number}-${name}.rules


写入如下内容:

SUBSYSTEM=="usb", ATTRS{idVendor}=="2cb7", ATTRS{idProduct}=="0a06",MODE="0666"点击复制复制失败已复制


加下来保存文件,并赋予权限:

$ sudo chmod a+x 51-fm650.rules点击复制复制失败已复制


验证

拔掉 usb 重新插上测试:

$ adb devices
$ adb shell
目录
相关文章
|
1月前
|
开发者 iOS开发
Unable to boot device due to insufficient system resources
Unable to boot device due to insufficient system resources
24 1
|
1月前
|
存储 Android开发
/storage/emulated/0/bluetooth/Screenshot.competeordersb.png: open failed: EACCES (Permission denied)
/storage/emulated/0/bluetooth/Screenshot.competeordersb.png: open failed: EACCES (Permission denied)
25 1
|
1月前
remount of the / superblock failed: Permission denied remount failed
remount of the / superblock failed: Permission denied remount failed
17 0
|
机器学习/深度学习 PyTorch 算法框架/工具
解决RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cp
对应两种保存模型的方式,pytorch也有两种加载模型的方式。对应第一种保存方式,加载模型时通过torch.load(‘.pth’)直接初始化新的神经网络对象;对应第二种保存方式,需要首先导入对应的网络,再通过net.load_state_dict(torch.load(‘.pth’))完成模型参数的加载。
967 0
|
并行计算 PyTorch 算法框架/工具
CUDA unknown error - this may be due to an incorrectly set up environment 问题解决
CUDA unknown error - this may be due to an incorrectly set up environment 问题解决
CUDA unknown error - this may be due to an incorrectly set up environment 问题解决
|
Go iOS开发
The operation couldn’t be completed. Unable to log in with account 'myappleid'. An unexpected failure occurred while logging in (Underlying error code 1100).解决方法
The operation couldn’t be completed. Unable to log in with account 'myappleid'. An unexpected failure occurred while logging in (Underlying error code 1100).解决方法
371 0
|
区块链
Error: No network specified. Cannot determine current network异常
Error: No network specified. Cannot determine current network异常
135 0