cannot open /dev/ttyS0: Permission denied, but in dialout group
49,370
I suggest you should just double-check if you are a member of the dialout group, let us suppose your username is joeuser, do the following:
groups joeuser
..this will list all the groups you belong to. If you don't belong to the dialout group then add yourself to it, for example:
sudo gpasswd --add joeuser dialout
You then need to log out and log back in again for it to be effective. Then see if it fixes your problem.
Related videos on Youtube
Author by
Admin
Updated on September 18, 2022Comments
-
Admin over 1 year
I am trying to use my 9 pin serial port to connect my automotive ECU to my computer (megasquirt controller). I've done this before with Ubuntu 10.04 but now that I've just upgraded to 12.04 it simply will not connect. I didn't have any issue before. Now I simply cannot open this port.
Using
chmod
I get this:~$ chmod o+rw /dev/ttyS0 chmod: changing permissions of `/dev/ttyS0': Operation not permitted
-
Alex Nolasco over 11 yearsEmphasis on logout/login and trying again.
-
albfan almost 11 yearsI want to remark that log out and log back in is the key to get this to work.
-
Nandan Vasudevan over 3 yearsThanks Colin! However on Ubuntu 20.04, logging out did not work. I had to reboot my system.