Public bug reported:

lsb_release:
Description:    Ubuntu 18.04 LTS
Release:        18.04

I write systemd services that launch with root privileges and de-
privilege themselves to a system account (called mxdaemon). These
services require access to the physical serial port (/dev/ttyS0) on the
PC.

Serial port: crw-rw---- 1 root dialout 4, 64 Jun 13 22:00 /dev/ttyS0

When run as root, the service has no problem communicating via the serial port.
When the service is configured to de-privilege to mxdaemon, I get a permission 
denied error when attempting to access /dev/ttyS0.

mxdaemon is a member of both the dialout & tty groups: mxdaemon : mxdaemon 
dialout tty
Even after rebooting the PC, I still get permission denied for any user besides 
root.

Hours of scouring the Internet suggest that everything is configured
correctly.

** Affects: ubuntu
     Importance: Undecided
         Status: New


** Tags: port serial

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1776805

Title:
  Serial port permission denied for non-root user with dialout group
  privileges

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1776805/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to