본문으로 바로가기
728x90
반응형

link : http://ask.xmodulo.com/change-usb-device-permission-linux.html

 

How to change USB device permission permanently on Linux - Ask Xmodulo

Question: I am trying to run gpsd on my Linux with a USB GPS receiver. However, I am getting the following errors from gpsd. gpsd[377]: gpsd:ERROR: read-only device open failed: Permission denied gpsd[377]: gpsd:ERROR: /dev/ttyUSB0: device activation faile

ask.xmodulo.com

1. USB 디바이스 확인

cd /dev

ls -al

 

2. USB 디바이스 제품 확인

lsusb -vvv

 

출력되는 정보에서 idVender, idProduct를 찾아 기록한다.

3. 디바이스 등록

 

sudo gedit /etc/udev/rules.d/50-myusb.rules

 


SUBSYSTEMS=="usb", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", GROUP="users", MODE="0666"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="0042", GROUP="users", MODE="0666"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523", GROUP="users", MODE="0666"

 

 

4. 재실행

 

sudo udevadm control --reload

 

5. Useful link

https://www.makeuseof.com/tag/fix-usb-device-port-linux/

 

5 Ways to Fix a Malfunctioning USB Device or Port on Linux

Can't get your USB devices to work properly in Linux? Try these troubleshooting tips to get things working again.

www.makeuseof.com

https://codingcoding.tistory.com/212

 

리눅스 심볼릭 링크 ttyUSBx 만들기 (symbolic link 우분투)

리눅스 심볼릭 링크 ttyUSBx 만들기 (symbolic link 우분투) ※ 이 포스트는 Ubuntu 32비트 14.04에서 작업한 사항 리눅스에서 심볼릭 링크를 만들어야 할 상황이 몇 가지 있는데, 이 포스트에서는 ttyUSBx에 대한..

codingcoding.tistory.com

 

https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=rlackd93&logNo=221312677996 

 

Linux usb devices (udev) 에 대한 이름 부여(ttyUSB* 에서 *가 매번 바뀌는 것을 방지)

Linux 에서 arduino 등 usb 기반의 장치를 연결 하여 서로 serial 통신을 하려는 경우, 대부분의 장치가 t...

blog.naver.com

 

6. 

udevadm info -a -n /dev/ttyUSB* | grep '{serial}' | head -n1

728x90
반응형

'소프트웨어 > Linux' 카테고리의 다른 글

sudo 실행 시 비밀번호 미리 입력  (0) 2020.11.16
Ubuntu용 스티커 메모 설치  (0) 2020.11.13
XBOX One Wireless Controller 설치  (0) 2019.02.26
Ubuntu 16.04 - SSH 설치  (0) 2019.02.20
Linux(Ubuntu) Tips  (0) 2019.02.18