Celeb Glow
updates | March 07, 2026

I'm in the dialout group but I still have to sudo chmod every time I use the serial port

I've added myself to the dialout group but I'm unable to access it without sudo chmod every terminal session? How can l permanently solve this issue?

6

1 Answer

A simple way of getting permanent access to your device, no matter the port you connect it to, is creating a rule in the udev folder. With it you associate some parameters of your device (typically the Vendor and Product ID) and establish the permissions for such device.

First of all, get the information from your device:

  1. Plug it in your computer
  2. On a terminal, type dmesg and take the information of your device from the last lines in the output

Once you have the information about your device, create a rule at the udev directory:

cd /etc/udev/rules.d/
sudo touch 20-your-device.rules
sudo echo ATTR{idVendor}=="XXXX", ATTR{idProduct}=="YYYY", MODE="0666" >> 20-your-device.rules

where XXXX and YYYY are the Vendor and Product ID that you obtained from the previous instructions.

Remember to log out and log in from your session for making it work. Otherwise you can manually reload the rules.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy