When I try to open /dev/ttyUSB0
with serial-term
, following permission 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, without changing my user groups). Perhaps something like run M-x serial-term
with root privileges?