Main Menu

search

You are here

Cannot Open Port - Permission Denied

[last updated: 2021-09-26]
go to: Linux home page
-----

  • If you connect an Arduino to your USB port, and program upload fails for "Cannot open port - Permission denied"
    This could be because you (your user) is not a member of the group that the port belongs to.

  • It happens that serial ports by default belong to the "dialout" group.
    You must be a member of the dialout group in order to open any ports.

  • See if you are a member of the dialout group:
      $ groups ${USER}
      This will list all groups that your user belongs to.
      If dialout is not in the list, then you must add it.
  • Add yourself to the dialout group:
      $ sudo gpasswd --add ${USER} dialout

.

.

.

eof