LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-18-2013, 02:52 PM   #1
keglud
LQ Newbie
 
Registered: Sep 2013
Location: Aarhus, Denmark
Posts: 1

Rep: Reputation: Disabled
Adding dialout group to user in order to open /dev/ttyUSB0


Hi
I am trying to open /dev/ttyUSB0 via a python script.
When I run the script, I get the fault "serial.serialutil.SerialException: could not open port /dev/ttyUSB0: [Errno 13] Permission denied: '/dev/ttyUSB0'.

I guess that this is because the group dialout is not assigned to the user.
I have tried using the "$ sudo usermod -a -G dialout keglud" command, but the dialout group is not shown when typing "$ groups"
Can anyone help?
 
Old 09-20-2013, 04:05 PM   #2
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Debian like
Posts: 710
Blog Entries: 2

Rep: Reputation: 68
chgrp dialout /dev/ttyUSB0
?
or chgrp dialout the_user?
Just a guess.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] What group should a new user to be included in in order to use audio device? illidan.modeler Slackware 3 09-07-2013 11:53 AM
Ubuntu - How to determine which process has /dev/ttyUSB0 port open? EricNZ Ubuntu 4 01-16-2011 06:51 PM
[SOLVED] add group uucp permanently to /dev/ttyUSB0 JZL240I-U Linux - Software 11 05-03-2010 09:15 AM
Adding user to a group onjoo Linux - Newbie 1 03-05-2006 07:23 AM
Failed to open device /dev/usb/ttyUSB0: No such device efm Linux - Newbie 2 04-04-2005 09:46 PM


All times are GMT -5. The time now is 07:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration