When I try to open /dev/ttyUSB0 with serial-term, following error shows:

Opening serial port: Permission denied, /dev/ttyUSB0

I know I can add my user to a group that has access to /dev/tty*. Probably something like:

# sudo usermod -aG tty $(whoami)

However, Is there anyway to access /dev/ttyUSB0 within emacs (just put my password, whenever I access to serial ports). Perhaps something like run M-x serial-term with root privileges?


Your Answer

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

Browse other questions tagged or ask your own question.