Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

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

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, 03:05 PM   #2
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Debian like
Posts: 783
Blog Entries: 2

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


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 10:53 AM
Ubuntu - How to determine which process has /dev/ttyUSB0 port open? EricNZ Ubuntu 4 01-16-2011 05:51 PM
[SOLVED] add group uucp permanently to /dev/ttyUSB0 JZL240I-U Linux - Software 11 05-03-2010 08:15 AM
Adding user to a group onjoo Linux - Newbie 1 03-05-2006 06:23 AM
Failed to open device /dev/usb/ttyUSB0: No such device efm Linux - Newbie 2 04-04-2005 08:46 PM > Forums > Linux Forums > Linux - Newbie

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

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