Tech for Techs

Operating Systems => Ubuntu Destop => Topic started by: Adventech on October 09, 2012, 01:52:18 AM

Title: Enable non-admin users to access ttyUSB0
Post by: Adventech on October 09, 2012, 01:52:18 AM
PROBLEM:
How to enable USB to Serial adapter in Ubuntu 12.4.
Putty could not open port.
Enable non-admin users to access ttyUSB0.

SOLUTION:

Temp Work Around:
gksudo putty

FIX:
1.) Install the USB to Serial Adapter.
usb 1-1: new full speed USB device using uhci_and address 2
usb 1-1: configuration #1 chosen from 1 choice

Bus 003 Device 001: ID 0000:0000
Bus 002 Device 007: ID 03f0:4f11 Hewlett-Packard
Bus 002 Device 006: ID 05e3:1205 Genesys Logic, Inc. Afilias Optical Mouse H3003
Bus 002 Device 004: ID 15d9:0a33

Bus 003 Device 001: ID 0000:0000
Bus 002 Device 007: ID 03f0:4f11 Hewlett-Packard
Bus 001 Device 002: ID 4348:5523 --- --- --- (notice the additional line!)
Bus 002 Device 006: ID 05e3:1205 Genesys Logic, Inc. Afilias Optical Mouse H3003
Bus 002 Device 004: ID 15d9:0a33

sudo modprobe usbserial vendor=0x4348 product=0x5523
Run "dmesg" again and you shall see lines similar like this :

usbserial_generic 1-1:1.0: generic converter detected
usb 1-1: generic converter now attached to ttyUSB0
usbcore: registered new interface driver usbserial_generic


2.) You will need to add your user to the DIALOUT group
sudo adduser <the user you want to add> dialout
sudo reboot[/list]