Fedora Linux Support Community & Resources Center
  #1  
Old 26th June 2012, 01:44 AM
rwgast Offline
Registered User
 
Join Date: May 2012
Location: Tekkno Lab
Posts: 9
linuxchrome
Accessing certain USB devices without root??!!

Ok so hopefully some one out there can give me some help as Im sure the problem Im about to describe happens with outer devices than the ones im having trouble with.

I program micro controlleres and I have a usb to serial adapter which is basically a dongle that that plugs into usb and and makes a ttl level serial port. I also have a plain usb o rs232 cable (have no serial devices to test it though), and an avr usbasp programmer. When any program tries to access these devices to program the chips it fails. When I run as root everything is just fine... I need someway to access these devices without out duoing everytime I want to run avrdude or the propeller ide. The strange thing is usb sticks, usb hard drives and usb floppys all work fine system wide along with my BT module. The only devices doing this are devices that comunicate via serial some how.
Reply With Quote
  #2  
Old 26th June 2012, 01:59 AM
PabloTwo's Avatar
PabloTwo Online
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,119
linuxchrome
Re: Accessing certain USB devices without root??!!

Serial devices are generally assigned owner:group of "root" and "dialout". You're USB>Serial dongle most likely is /dev/ttyUSB0.
Code:
BASH:~/-> ll /dev/ttyUSB0
crw-rw----. 1 root dialout 188, 0 Jun 25 19:19 /dev/ttyUSB0
Add your regular user to the "dialout" group and you should have no trouble accessing those serial devices without having to switch to root.
Code:
# usermod -a -G dialout username

Last edited by PabloTwo; 26th June 2012 at 02:01 AM.
Reply With Quote
Reply

Tags
accessing, devices, root, usb

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora requires root password when accessing second windows hard disk zentio Using Fedora 2 28th August 2010 08:32 PM
Fedora 11 weird problem accessing accessing port 80 egstern Servers & Networking 0 1st March 2010 03:48 AM
Non-root cannot automount USB or CD/DVD devices mbratch Using Fedora 12 24th December 2007 07:38 PM
TrueCrypt 4.1 and Container accessing by a non-root user Camino Using Fedora 1 31st December 2005 01:47 PM
only root can mount devices LinuxHippy Using Fedora 5 25th June 2005 11:10 PM


Current GMT-time: 23:31 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat