If you're using Linux and getting 'Permission denied' errors, when trying to establish a serial connection, this article may help you to resolve the problem.
Most 'Permission denied' error messages can be resolved by adding your user account to the group having control of the serial port. The first step to do so is to identify the serial port path.
You can find the serial port path in Termius, on the Serial Connection screen. The path may look like this:
The next step is to check the ownership of the port, which you can do by running the command provided below. Replace '<port path>' with your port path.
ls -l <port path>
You'll see a similar output, which includes the required information, that is the name of the group with control of the serial port. In this example, it is 'dialout':
crw-rw----. 1 root dialout 188, 0 Jan 21 11:05 /dev/ttyUSB0
To add your account to the appropriate group, use the command given below. Before running the command, replace
dialout with the name of your user account and group.
sudo usermod -a $(name) -G dialout
For the changes to take effect, log out from your user account and log in back again.
Was this article helpful?
Articles in this section
- Some symbols in the terminal are rendered as question marks, how can I fix it?
- I get a "Couldn't load reCAPTCHA" error
- I can't use the iOS app in the background
- I can't log in or synchronize data
- I can't connect to a local device on iPhone
- I can't use Termius for Android in the background
- I can't find the local terminal option in the desktop app
- I see double / none of my characters in a Telnet session
- My App Store subscription is not active
- I can't map Caps Lock
Please sign in to leave a comment.