syslog user can't write to serial or terminal devices
Bug #1258245 reported by
Andy Doan
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
rsyslog (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
We configure a VM via libvirt to have a serial device(/dev/ttyS0) that writes to a file on the host. During the desktop install we have some early preseed logic that adds an /etc/rsyslog.d config file that directs syslog messages to /dev/ttyS0. Under recent images, nothing is showing up in the file on the host end. For a quick sanity check I ran the following command in the VM:
echo ANDY > /dev/ttyS0
This works when done as root, but won't work when run as the syslog user. Digging a little more I see rsyslogd runs as syslog (which is in the syslog and adm groups) and ttyS0 is writeable to root and dialout.
This is based on today's image with includes rsyslog 7.4.4-1ubuntu2
tags: | added: trusty |
Changed in rsyslog (Ubuntu): | |
importance: | Undecided → Medium |
To post a comment you must log in.
This is by and large by design, as rsyslog now runs with reduced privileges. If you want rsyslog to access serial terminals, you can do
sudo adduser syslog dialout