How do I allow non-root access to /ttyUSB0 on 12.04? The 2019 Stack Overflow Developer Survey Results Are Inchown file changes back to root after rebootHow to connect/read/write to serial port without rootHow can I automatically launch GPSD on startup?Problem when using screen on /dev/ttyUSB0How to doubleclick a Java Jar and start it without sudoSend raw data to USB parallel port after upgrading to 11.10GPS-data logger does not communicate to computerRS-232-to-USB is not workingUdev rule is executed twice because Android Smartphone is mounted 2 timesWhy does serial device only work on one USB port?Ubuntu 14.04 and Huawei E173s - only storage modeUSB device not enumerated properly in Ubuntu 14.04 LTSwriting udev rule for USB devicePermission denied to non-root user for USB deviceMouse clicks caused by Arduino device
Is it a good practice to use a static variable in a Test Class and use that in the actual class instead of Test.isRunningTest()?
Ubuntu Server install with full GUI
Button changing its text & action. Good or terrible?
Did Scotland spend $250,000 for the slogan "Welcome to Scotland"?
Why can't devices on different VLANs, but on the same subnet, communicate?
Likelihood that a superbug or lethal virus could come from a landfill
What is the most efficient way to store a numeric range?
What is this sharp, curved notch on my knife for?
Is it ethical to upload a automatically generated paper to a non peer-reviewed site as part of a larger research?
Accepted by European university, rejected by all American ones I applied to? Possible reasons?
Will it cause any balance problems to have PCs level up and gain the benefits of a long rest mid-fight?
How to charge AirPods to keep battery healthy?
How can I add encounters in the Lost Mine of Phandelver campaign without giving PCs too much XP?
Old scifi movie from the 50s or 60s with men in solid red uniforms who interrogate a spy from the past
What is the motivation for a law requiring 2 parties to consent for recording a conversation
Why don't hard Brexiteers insist on a hard border to prevent illegal immigration after Brexit?
Straighten subgroup lattice
What does Linus Torvalds mean when he says that Git "never ever" tracks a file?
Getting crown tickets for Statue of Liberty
What do I do when my TA workload is more than expected?
Can there be female White Walkers?
Are there any other methods to apply to solving simultaneous equations?
How do I free up internal storage if I don't have any apps downloaded?
I am an eight letter word. What am I?
How do I allow non-root access to /ttyUSB0 on 12.04?
The 2019 Stack Overflow Developer Survey Results Are Inchown file changes back to root after rebootHow to connect/read/write to serial port without rootHow can I automatically launch GPSD on startup?Problem when using screen on /dev/ttyUSB0How to doubleclick a Java Jar and start it without sudoSend raw data to USB parallel port after upgrading to 11.10GPS-data logger does not communicate to computerRS-232-to-USB is not workingUdev rule is executed twice because Android Smartphone is mounted 2 timesWhy does serial device only work on one USB port?Ubuntu 14.04 and Huawei E173s - only storage modeUSB device not enumerated properly in Ubuntu 14.04 LTSwriting udev rule for USB devicePermission denied to non-root user for USB deviceMouse clicks caused by Arduino device
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Since I updated from 10.04 to 12.04, I am unable to access the device connected in /ttyUSB0 if I don't have root access. To be more specific, I use a usb-to-serial com port converter to access and configure Cisco equipment with a software called Putty
. It happens that, since I upgraded to 12.04, Putty
only sees the connected device when I run it as gksudo putty
. If not, it says "unable to connect to port /ttyUSB0". I have managed to change the permissions via chmod 666, and it works, but if I disconnect the usb and reconnect, it goes back to root only. How do I permanently allow non-root access? I have a clue it might be via udev rules, but I have no idea how to do it.
obs. Manufacturer and drivers "PROLIFIC"
12.04 usb root
add a comment |
Since I updated from 10.04 to 12.04, I am unable to access the device connected in /ttyUSB0 if I don't have root access. To be more specific, I use a usb-to-serial com port converter to access and configure Cisco equipment with a software called Putty
. It happens that, since I upgraded to 12.04, Putty
only sees the connected device when I run it as gksudo putty
. If not, it says "unable to connect to port /ttyUSB0". I have managed to change the permissions via chmod 666, and it works, but if I disconnect the usb and reconnect, it goes back to root only. How do I permanently allow non-root access? I have a clue it might be via udev rules, but I have no idea how to do it.
obs. Manufacturer and drivers "PROLIFIC"
12.04 usb root
add a comment |
Since I updated from 10.04 to 12.04, I am unable to access the device connected in /ttyUSB0 if I don't have root access. To be more specific, I use a usb-to-serial com port converter to access and configure Cisco equipment with a software called Putty
. It happens that, since I upgraded to 12.04, Putty
only sees the connected device when I run it as gksudo putty
. If not, it says "unable to connect to port /ttyUSB0". I have managed to change the permissions via chmod 666, and it works, but if I disconnect the usb and reconnect, it goes back to root only. How do I permanently allow non-root access? I have a clue it might be via udev rules, but I have no idea how to do it.
obs. Manufacturer and drivers "PROLIFIC"
12.04 usb root
Since I updated from 10.04 to 12.04, I am unable to access the device connected in /ttyUSB0 if I don't have root access. To be more specific, I use a usb-to-serial com port converter to access and configure Cisco equipment with a software called Putty
. It happens that, since I upgraded to 12.04, Putty
only sees the connected device when I run it as gksudo putty
. If not, it says "unable to connect to port /ttyUSB0". I have managed to change the permissions via chmod 666, and it works, but if I disconnect the usb and reconnect, it goes back to root only. How do I permanently allow non-root access? I have a clue it might be via udev rules, but I have no idea how to do it.
obs. Manufacturer and drivers "PROLIFIC"
12.04 usb root
12.04 usb root
edited Jun 22 '16 at 20:04
amc
4,81462746
4,81462746
asked May 7 '12 at 14:18
yurividalyurividal
77121323
77121323
add a comment |
add a comment |
9 Answers
9
active
oldest
votes
It's possible this is related to modemmanager, as detailed here.
I removed that (sudo apt-get remove modemmanager
) and it fixed my problem.
You still need to be in the dialout
group though.
1
What if I can't remove modemmanager? I have a friend that has a 3G modem, and it seems he can't remove modemmanager because of that. How can he access /ttyUSB0 on 12.04 without root, but without removing modemmanager?
– Leonardo Montenegro
Jul 19 '13 at 12:22
You can try by stopping it?sudo stop modemmanager
It worked for me.
– Aleks
Aug 12 '14 at 9:19
Been a few years, but this is still the case in Ubuntu 17.10. Had to do asudo apt-get purge modemmanager
beforesudo usermod -a -G dialout $USER
had the desired effect.
– Stéphane
Nov 6 '17 at 3:29
add a comment |
The device is most likely attached to user group dialout
. Just add your user to the dialout group so you have appropriate permissions on the device.
sudo usermod -a -G dialout $USER
(You may need to logout and back in for the new group to take effect.)
No need to mess around with permissions or udev rules.
no success... still no acces to ttyUSB0 without root... any other ideas???
– yurividal
May 11 '12 at 16:16
2
I sign in to upvote. The cleanest solution.
– 0x5f3759df
Apr 10 '13 at 10:15
1
@tom-hennen I guess you should add it first as a comment rather than edit it directly.
– MadMike
Oct 29 '14 at 13:33
2
This doesn't work for Debian
– Mike
May 16 '15 at 16:51
1
Kudos for including "may need to logout and back in".
– Rob Stoecklein
Jul 26 '18 at 13:57
|
show 6 more comments
sudo adduser <the user you want to add> dialout
sudo reboot
Mentioned by "Try now" worked for me. Check that You have dialout
as group for ttyUSB0
:
ls -l /dev/ttyUSB0
in my case the output is:
crw-rw---T 1 root dialout 188, 0 Feb 12 12:01 /dev/ttyUSB0
in Linux Mint 18 Cinnamon I get this error when calling ' ls -l /dev/ttyUSB0 ' ls: cannot access '/dev/ttyUSB0': No such file or directory
– flyingdrifter
Dec 8 '16 at 22:56
add a comment |
This worked for me. Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below.
sudo adduser <the user you want to add> dialout
sudo reboot
id -Gn
Try now.
add a comment |
As reported by Rinzwind, start by typing:
sudo usermod -a -G dialout $USER
But that is only part of the solution, as then you must reboot the system:
sudo reboot
5
1) Please don't post comments as answers. 2) No need to reboot; just log out and log back in.
– gertvdijk
Sep 11 '14 at 12:07
add a comment |
I tried both
sudo usermod -a -G dialout $USER #(worked perfectly)
And sudo chmod 666 /dev/ttyUSB0
(worked but had to type the command again)
I also removed the mode manager but did not really help.
Therefore, the best command that worked for me was
sudo usermod -a -G dialout $USER
add a comment |
On Ubuntu 18.04 I had to add myself to the tty group.
I got hinted by the minicom command output:
minicom /dev/ttyUSB0
minicom: cannot open /dev/tty8: Permission denied
ls -la /dev/tty8
crw--w---- 1 root tty 4, 8 juil. 31 08:27 /dev/tty
add a comment |
I had this problem with /dev/ttyS0 in Mint Rosa. Adding the user to the dialout group is required but in my case the device access was restricted and I had to expand it to give r/w access to group level also.
1
Welcome to Ask Ubuntu! I recommend editing this answer to expand it with specific details about how to do this. (See also How do I write a good answer? for general advice about what sorts of answers are considered most valuable on Ask Ubuntu.)
– David Foerster
Sep 4 '16 at 18:42
add a comment |
navigate to /etc/ folder and edit the group file
add your username like this dialout:x:20:USER
worked perfect for me :)
4
It is generally considered bad practice to edit these files directly as some simple mistakes can cause loss of access.
– flickerfly
Apr 10 '15 at 20:49
add a comment |
protected by Community♦ Apr 10 '18 at 17:38
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
9 Answers
9
active
oldest
votes
9 Answers
9
active
oldest
votes
active
oldest
votes
active
oldest
votes
It's possible this is related to modemmanager, as detailed here.
I removed that (sudo apt-get remove modemmanager
) and it fixed my problem.
You still need to be in the dialout
group though.
1
What if I can't remove modemmanager? I have a friend that has a 3G modem, and it seems he can't remove modemmanager because of that. How can he access /ttyUSB0 on 12.04 without root, but without removing modemmanager?
– Leonardo Montenegro
Jul 19 '13 at 12:22
You can try by stopping it?sudo stop modemmanager
It worked for me.
– Aleks
Aug 12 '14 at 9:19
Been a few years, but this is still the case in Ubuntu 17.10. Had to do asudo apt-get purge modemmanager
beforesudo usermod -a -G dialout $USER
had the desired effect.
– Stéphane
Nov 6 '17 at 3:29
add a comment |
It's possible this is related to modemmanager, as detailed here.
I removed that (sudo apt-get remove modemmanager
) and it fixed my problem.
You still need to be in the dialout
group though.
1
What if I can't remove modemmanager? I have a friend that has a 3G modem, and it seems he can't remove modemmanager because of that. How can he access /ttyUSB0 on 12.04 without root, but without removing modemmanager?
– Leonardo Montenegro
Jul 19 '13 at 12:22
You can try by stopping it?sudo stop modemmanager
It worked for me.
– Aleks
Aug 12 '14 at 9:19
Been a few years, but this is still the case in Ubuntu 17.10. Had to do asudo apt-get purge modemmanager
beforesudo usermod -a -G dialout $USER
had the desired effect.
– Stéphane
Nov 6 '17 at 3:29
add a comment |
It's possible this is related to modemmanager, as detailed here.
I removed that (sudo apt-get remove modemmanager
) and it fixed my problem.
You still need to be in the dialout
group though.
It's possible this is related to modemmanager, as detailed here.
I removed that (sudo apt-get remove modemmanager
) and it fixed my problem.
You still need to be in the dialout
group though.
edited Jun 25 '12 at 3:02
Eliah Kagan
83.3k22229369
83.3k22229369
answered Jun 24 '12 at 12:26
Ed.Ed.
961
961
1
What if I can't remove modemmanager? I have a friend that has a 3G modem, and it seems he can't remove modemmanager because of that. How can he access /ttyUSB0 on 12.04 without root, but without removing modemmanager?
– Leonardo Montenegro
Jul 19 '13 at 12:22
You can try by stopping it?sudo stop modemmanager
It worked for me.
– Aleks
Aug 12 '14 at 9:19
Been a few years, but this is still the case in Ubuntu 17.10. Had to do asudo apt-get purge modemmanager
beforesudo usermod -a -G dialout $USER
had the desired effect.
– Stéphane
Nov 6 '17 at 3:29
add a comment |
1
What if I can't remove modemmanager? I have a friend that has a 3G modem, and it seems he can't remove modemmanager because of that. How can he access /ttyUSB0 on 12.04 without root, but without removing modemmanager?
– Leonardo Montenegro
Jul 19 '13 at 12:22
You can try by stopping it?sudo stop modemmanager
It worked for me.
– Aleks
Aug 12 '14 at 9:19
Been a few years, but this is still the case in Ubuntu 17.10. Had to do asudo apt-get purge modemmanager
beforesudo usermod -a -G dialout $USER
had the desired effect.
– Stéphane
Nov 6 '17 at 3:29
1
1
What if I can't remove modemmanager? I have a friend that has a 3G modem, and it seems he can't remove modemmanager because of that. How can he access /ttyUSB0 on 12.04 without root, but without removing modemmanager?
– Leonardo Montenegro
Jul 19 '13 at 12:22
What if I can't remove modemmanager? I have a friend that has a 3G modem, and it seems he can't remove modemmanager because of that. How can he access /ttyUSB0 on 12.04 without root, but without removing modemmanager?
– Leonardo Montenegro
Jul 19 '13 at 12:22
You can try by stopping it?
sudo stop modemmanager
It worked for me.– Aleks
Aug 12 '14 at 9:19
You can try by stopping it?
sudo stop modemmanager
It worked for me.– Aleks
Aug 12 '14 at 9:19
Been a few years, but this is still the case in Ubuntu 17.10. Had to do a
sudo apt-get purge modemmanager
before sudo usermod -a -G dialout $USER
had the desired effect.– Stéphane
Nov 6 '17 at 3:29
Been a few years, but this is still the case in Ubuntu 17.10. Had to do a
sudo apt-get purge modemmanager
before sudo usermod -a -G dialout $USER
had the desired effect.– Stéphane
Nov 6 '17 at 3:29
add a comment |
The device is most likely attached to user group dialout
. Just add your user to the dialout group so you have appropriate permissions on the device.
sudo usermod -a -G dialout $USER
(You may need to logout and back in for the new group to take effect.)
No need to mess around with permissions or udev rules.
no success... still no acces to ttyUSB0 without root... any other ideas???
– yurividal
May 11 '12 at 16:16
2
I sign in to upvote. The cleanest solution.
– 0x5f3759df
Apr 10 '13 at 10:15
1
@tom-hennen I guess you should add it first as a comment rather than edit it directly.
– MadMike
Oct 29 '14 at 13:33
2
This doesn't work for Debian
– Mike
May 16 '15 at 16:51
1
Kudos for including "may need to logout and back in".
– Rob Stoecklein
Jul 26 '18 at 13:57
|
show 6 more comments
The device is most likely attached to user group dialout
. Just add your user to the dialout group so you have appropriate permissions on the device.
sudo usermod -a -G dialout $USER
(You may need to logout and back in for the new group to take effect.)
No need to mess around with permissions or udev rules.
no success... still no acces to ttyUSB0 without root... any other ideas???
– yurividal
May 11 '12 at 16:16
2
I sign in to upvote. The cleanest solution.
– 0x5f3759df
Apr 10 '13 at 10:15
1
@tom-hennen I guess you should add it first as a comment rather than edit it directly.
– MadMike
Oct 29 '14 at 13:33
2
This doesn't work for Debian
– Mike
May 16 '15 at 16:51
1
Kudos for including "may need to logout and back in".
– Rob Stoecklein
Jul 26 '18 at 13:57
|
show 6 more comments
The device is most likely attached to user group dialout
. Just add your user to the dialout group so you have appropriate permissions on the device.
sudo usermod -a -G dialout $USER
(You may need to logout and back in for the new group to take effect.)
No need to mess around with permissions or udev rules.
The device is most likely attached to user group dialout
. Just add your user to the dialout group so you have appropriate permissions on the device.
sudo usermod -a -G dialout $USER
(You may need to logout and back in for the new group to take effect.)
No need to mess around with permissions or udev rules.
edited Oct 29 '14 at 13:43
Tom Hennen
14516
14516
answered May 7 '12 at 14:32
RinzwindRinzwind
210k28404538
210k28404538
no success... still no acces to ttyUSB0 without root... any other ideas???
– yurividal
May 11 '12 at 16:16
2
I sign in to upvote. The cleanest solution.
– 0x5f3759df
Apr 10 '13 at 10:15
1
@tom-hennen I guess you should add it first as a comment rather than edit it directly.
– MadMike
Oct 29 '14 at 13:33
2
This doesn't work for Debian
– Mike
May 16 '15 at 16:51
1
Kudos for including "may need to logout and back in".
– Rob Stoecklein
Jul 26 '18 at 13:57
|
show 6 more comments
no success... still no acces to ttyUSB0 without root... any other ideas???
– yurividal
May 11 '12 at 16:16
2
I sign in to upvote. The cleanest solution.
– 0x5f3759df
Apr 10 '13 at 10:15
1
@tom-hennen I guess you should add it first as a comment rather than edit it directly.
– MadMike
Oct 29 '14 at 13:33
2
This doesn't work for Debian
– Mike
May 16 '15 at 16:51
1
Kudos for including "may need to logout and back in".
– Rob Stoecklein
Jul 26 '18 at 13:57
no success... still no acces to ttyUSB0 without root... any other ideas???
– yurividal
May 11 '12 at 16:16
no success... still no acces to ttyUSB0 without root... any other ideas???
– yurividal
May 11 '12 at 16:16
2
2
I sign in to upvote. The cleanest solution.
– 0x5f3759df
Apr 10 '13 at 10:15
I sign in to upvote. The cleanest solution.
– 0x5f3759df
Apr 10 '13 at 10:15
1
1
@tom-hennen I guess you should add it first as a comment rather than edit it directly.
– MadMike
Oct 29 '14 at 13:33
@tom-hennen I guess you should add it first as a comment rather than edit it directly.
– MadMike
Oct 29 '14 at 13:33
2
2
This doesn't work for Debian
– Mike
May 16 '15 at 16:51
This doesn't work for Debian
– Mike
May 16 '15 at 16:51
1
1
Kudos for including "may need to logout and back in".
– Rob Stoecklein
Jul 26 '18 at 13:57
Kudos for including "may need to logout and back in".
– Rob Stoecklein
Jul 26 '18 at 13:57
|
show 6 more comments
sudo adduser <the user you want to add> dialout
sudo reboot
Mentioned by "Try now" worked for me. Check that You have dialout
as group for ttyUSB0
:
ls -l /dev/ttyUSB0
in my case the output is:
crw-rw---T 1 root dialout 188, 0 Feb 12 12:01 /dev/ttyUSB0
in Linux Mint 18 Cinnamon I get this error when calling ' ls -l /dev/ttyUSB0 ' ls: cannot access '/dev/ttyUSB0': No such file or directory
– flyingdrifter
Dec 8 '16 at 22:56
add a comment |
sudo adduser <the user you want to add> dialout
sudo reboot
Mentioned by "Try now" worked for me. Check that You have dialout
as group for ttyUSB0
:
ls -l /dev/ttyUSB0
in my case the output is:
crw-rw---T 1 root dialout 188, 0 Feb 12 12:01 /dev/ttyUSB0
in Linux Mint 18 Cinnamon I get this error when calling ' ls -l /dev/ttyUSB0 ' ls: cannot access '/dev/ttyUSB0': No such file or directory
– flyingdrifter
Dec 8 '16 at 22:56
add a comment |
sudo adduser <the user you want to add> dialout
sudo reboot
Mentioned by "Try now" worked for me. Check that You have dialout
as group for ttyUSB0
:
ls -l /dev/ttyUSB0
in my case the output is:
crw-rw---T 1 root dialout 188, 0 Feb 12 12:01 /dev/ttyUSB0
sudo adduser <the user you want to add> dialout
sudo reboot
Mentioned by "Try now" worked for me. Check that You have dialout
as group for ttyUSB0
:
ls -l /dev/ttyUSB0
in my case the output is:
crw-rw---T 1 root dialout 188, 0 Feb 12 12:01 /dev/ttyUSB0
edited Feb 12 '13 at 11:10
Aditya
9,468125589
9,468125589
answered Feb 12 '13 at 10:25
user130451user130451
7911
7911
in Linux Mint 18 Cinnamon I get this error when calling ' ls -l /dev/ttyUSB0 ' ls: cannot access '/dev/ttyUSB0': No such file or directory
– flyingdrifter
Dec 8 '16 at 22:56
add a comment |
in Linux Mint 18 Cinnamon I get this error when calling ' ls -l /dev/ttyUSB0 ' ls: cannot access '/dev/ttyUSB0': No such file or directory
– flyingdrifter
Dec 8 '16 at 22:56
in Linux Mint 18 Cinnamon I get this error when calling ' ls -l /dev/ttyUSB0 ' ls: cannot access '/dev/ttyUSB0': No such file or directory
– flyingdrifter
Dec 8 '16 at 22:56
in Linux Mint 18 Cinnamon I get this error when calling ' ls -l /dev/ttyUSB0 ' ls: cannot access '/dev/ttyUSB0': No such file or directory
– flyingdrifter
Dec 8 '16 at 22:56
add a comment |
This worked for me. Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below.
sudo adduser <the user you want to add> dialout
sudo reboot
id -Gn
Try now.
add a comment |
This worked for me. Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below.
sudo adduser <the user you want to add> dialout
sudo reboot
id -Gn
Try now.
add a comment |
This worked for me. Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below.
sudo adduser <the user you want to add> dialout
sudo reboot
id -Gn
Try now.
This worked for me. Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below.
sudo adduser <the user you want to add> dialout
sudo reboot
id -Gn
Try now.
edited Sep 11 '12 at 5:40
Mitch♦
85.7k14174232
85.7k14174232
answered Sep 10 '12 at 16:16
user88742user88742
211
211
add a comment |
add a comment |
As reported by Rinzwind, start by typing:
sudo usermod -a -G dialout $USER
But that is only part of the solution, as then you must reboot the system:
sudo reboot
5
1) Please don't post comments as answers. 2) No need to reboot; just log out and log back in.
– gertvdijk
Sep 11 '14 at 12:07
add a comment |
As reported by Rinzwind, start by typing:
sudo usermod -a -G dialout $USER
But that is only part of the solution, as then you must reboot the system:
sudo reboot
5
1) Please don't post comments as answers. 2) No need to reboot; just log out and log back in.
– gertvdijk
Sep 11 '14 at 12:07
add a comment |
As reported by Rinzwind, start by typing:
sudo usermod -a -G dialout $USER
But that is only part of the solution, as then you must reboot the system:
sudo reboot
As reported by Rinzwind, start by typing:
sudo usermod -a -G dialout $USER
But that is only part of the solution, as then you must reboot the system:
sudo reboot
edited Apr 13 '17 at 12:24
Community♦
1
1
answered Sep 11 '14 at 11:55
lbozlboz
111
111
5
1) Please don't post comments as answers. 2) No need to reboot; just log out and log back in.
– gertvdijk
Sep 11 '14 at 12:07
add a comment |
5
1) Please don't post comments as answers. 2) No need to reboot; just log out and log back in.
– gertvdijk
Sep 11 '14 at 12:07
5
5
1) Please don't post comments as answers. 2) No need to reboot; just log out and log back in.
– gertvdijk
Sep 11 '14 at 12:07
1) Please don't post comments as answers. 2) No need to reboot; just log out and log back in.
– gertvdijk
Sep 11 '14 at 12:07
add a comment |
I tried both
sudo usermod -a -G dialout $USER #(worked perfectly)
And sudo chmod 666 /dev/ttyUSB0
(worked but had to type the command again)
I also removed the mode manager but did not really help.
Therefore, the best command that worked for me was
sudo usermod -a -G dialout $USER
add a comment |
I tried both
sudo usermod -a -G dialout $USER #(worked perfectly)
And sudo chmod 666 /dev/ttyUSB0
(worked but had to type the command again)
I also removed the mode manager but did not really help.
Therefore, the best command that worked for me was
sudo usermod -a -G dialout $USER
add a comment |
I tried both
sudo usermod -a -G dialout $USER #(worked perfectly)
And sudo chmod 666 /dev/ttyUSB0
(worked but had to type the command again)
I also removed the mode manager but did not really help.
Therefore, the best command that worked for me was
sudo usermod -a -G dialout $USER
I tried both
sudo usermod -a -G dialout $USER #(worked perfectly)
And sudo chmod 666 /dev/ttyUSB0
(worked but had to type the command again)
I also removed the mode manager but did not really help.
Therefore, the best command that worked for me was
sudo usermod -a -G dialout $USER
edited Oct 9 '14 at 10:17
αғsнιη
25k23100162
25k23100162
answered Oct 9 '14 at 8:45
Salah AmeanSalah Amean
111
111
add a comment |
add a comment |
On Ubuntu 18.04 I had to add myself to the tty group.
I got hinted by the minicom command output:
minicom /dev/ttyUSB0
minicom: cannot open /dev/tty8: Permission denied
ls -la /dev/tty8
crw--w---- 1 root tty 4, 8 juil. 31 08:27 /dev/tty
add a comment |
On Ubuntu 18.04 I had to add myself to the tty group.
I got hinted by the minicom command output:
minicom /dev/ttyUSB0
minicom: cannot open /dev/tty8: Permission denied
ls -la /dev/tty8
crw--w---- 1 root tty 4, 8 juil. 31 08:27 /dev/tty
add a comment |
On Ubuntu 18.04 I had to add myself to the tty group.
I got hinted by the minicom command output:
minicom /dev/ttyUSB0
minicom: cannot open /dev/tty8: Permission denied
ls -la /dev/tty8
crw--w---- 1 root tty 4, 8 juil. 31 08:27 /dev/tty
On Ubuntu 18.04 I had to add myself to the tty group.
I got hinted by the minicom command output:
minicom /dev/ttyUSB0
minicom: cannot open /dev/tty8: Permission denied
ls -la /dev/tty8
crw--w---- 1 root tty 4, 8 juil. 31 08:27 /dev/tty
answered Jul 30 '18 at 21:54
LaurentLaurent
2131215
2131215
add a comment |
add a comment |
I had this problem with /dev/ttyS0 in Mint Rosa. Adding the user to the dialout group is required but in my case the device access was restricted and I had to expand it to give r/w access to group level also.
1
Welcome to Ask Ubuntu! I recommend editing this answer to expand it with specific details about how to do this. (See also How do I write a good answer? for general advice about what sorts of answers are considered most valuable on Ask Ubuntu.)
– David Foerster
Sep 4 '16 at 18:42
add a comment |
I had this problem with /dev/ttyS0 in Mint Rosa. Adding the user to the dialout group is required but in my case the device access was restricted and I had to expand it to give r/w access to group level also.
1
Welcome to Ask Ubuntu! I recommend editing this answer to expand it with specific details about how to do this. (See also How do I write a good answer? for general advice about what sorts of answers are considered most valuable on Ask Ubuntu.)
– David Foerster
Sep 4 '16 at 18:42
add a comment |
I had this problem with /dev/ttyS0 in Mint Rosa. Adding the user to the dialout group is required but in my case the device access was restricted and I had to expand it to give r/w access to group level also.
I had this problem with /dev/ttyS0 in Mint Rosa. Adding the user to the dialout group is required but in my case the device access was restricted and I had to expand it to give r/w access to group level also.
answered Sep 4 '16 at 18:16
LesALesA
1
1
1
Welcome to Ask Ubuntu! I recommend editing this answer to expand it with specific details about how to do this. (See also How do I write a good answer? for general advice about what sorts of answers are considered most valuable on Ask Ubuntu.)
– David Foerster
Sep 4 '16 at 18:42
add a comment |
1
Welcome to Ask Ubuntu! I recommend editing this answer to expand it with specific details about how to do this. (See also How do I write a good answer? for general advice about what sorts of answers are considered most valuable on Ask Ubuntu.)
– David Foerster
Sep 4 '16 at 18:42
1
1
Welcome to Ask Ubuntu! I recommend editing this answer to expand it with specific details about how to do this. (See also How do I write a good answer? for general advice about what sorts of answers are considered most valuable on Ask Ubuntu.)
– David Foerster
Sep 4 '16 at 18:42
Welcome to Ask Ubuntu! I recommend editing this answer to expand it with specific details about how to do this. (See also How do I write a good answer? for general advice about what sorts of answers are considered most valuable on Ask Ubuntu.)
– David Foerster
Sep 4 '16 at 18:42
add a comment |
navigate to /etc/ folder and edit the group file
add your username like this dialout:x:20:USER
worked perfect for me :)
4
It is generally considered bad practice to edit these files directly as some simple mistakes can cause loss of access.
– flickerfly
Apr 10 '15 at 20:49
add a comment |
navigate to /etc/ folder and edit the group file
add your username like this dialout:x:20:USER
worked perfect for me :)
4
It is generally considered bad practice to edit these files directly as some simple mistakes can cause loss of access.
– flickerfly
Apr 10 '15 at 20:49
add a comment |
navigate to /etc/ folder and edit the group file
add your username like this dialout:x:20:USER
worked perfect for me :)
navigate to /etc/ folder and edit the group file
add your username like this dialout:x:20:USER
worked perfect for me :)
edited Jan 16 '14 at 23:30
chaos
19.8k85968
19.8k85968
answered Jan 16 '14 at 22:57
BaneBane
1
1
4
It is generally considered bad practice to edit these files directly as some simple mistakes can cause loss of access.
– flickerfly
Apr 10 '15 at 20:49
add a comment |
4
It is generally considered bad practice to edit these files directly as some simple mistakes can cause loss of access.
– flickerfly
Apr 10 '15 at 20:49
4
4
It is generally considered bad practice to edit these files directly as some simple mistakes can cause loss of access.
– flickerfly
Apr 10 '15 at 20:49
It is generally considered bad practice to edit these files directly as some simple mistakes can cause loss of access.
– flickerfly
Apr 10 '15 at 20:49
add a comment |
protected by Community♦ Apr 10 '18 at 17:38
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?