[Bug 1258245] Re: syslog user can't write to /dev/ttyS0

Martin Pitt martin.pitt at ubuntu.com
Wed Dec 11 10:27:53 UTC 2013


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

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

Title:
  syslog user can't write to /dev/ttyS0

Status in “rsyslog” package in Ubuntu:
  New

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

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



More information about the foundations-bugs mailing list