Skip to content

SerialException: Could not open port /dev/ttyS0 [Errno 13] Permission denied: '/dev/ttyS0' #17

@tompreston

Description

@tompreston

Picture of the issue: https://twitter.com/sezzyann72/status/739477225637052416

It looks like permissions on /dev/ttyS0 are not set up correctly. When you type:

ls -l /dev/ttyS0

You should get the following readout:

crw-rw---- 1 root dialout 4, 64 Jun  6 10:56 /dev/ttyS0

Also,

groups

should return:

pi adm dialout cdrom sudo audio video plugdev games users input netdev gpio i2c spi

The important group to have is dialout.

This error can usually be fixed with:

sudo apt-get update
sudo apt-get upgrade

I'm opening this issue for discussion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions