Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

permanent change of permissions of the console UART

Featured Replies

I would like to permanently change at start up the UART permissions of /dev/ttyAML0 to give user, read write permissions always. I can do this with the usual "chmod" command but this gets reset after every boot and sometimes also during normal operations.

 

Can somebody direct me to how this can be done please?

 

xuraax

Serial port devices starting with tty are often times are owned by root, but group dialout.

 

If that's the case, the easiest is to add your user to the dialout group. Should be something along the lines of (but check "man usermod" before running it):

 

$ sudo usermod -aG dialout <USERNAME>

 

If the device is user and group root, you'll need to write a udev rule to set permissions when the kernel registers the device.

 

Some brief reading material:

 

https://stackoverflow.com/questions/14291431/change-ttyusb-permissions-using-udev#14292077

https://www.linuxquestions.org/questions/slackware-14/udev-rules-and-ttys0-device-644237/

 

Short version is that there's a few udev/rules.d directories, and you'll need to make a new rule file to match your KERNEL ttyAML0 device, and either assign ownership to your user, change group to dialout, or just make it world writable.

  • Author

Thanks for your reply.

 

I did add my user name to dialout but I still was refused permission to access from Python. After booting the user has write permission but not read.

 

I will study the links provided. I hope it is not too complicated for me.  I am not a complete novice but certainly no expert.

 

Regards

 

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.