Public bug reported:

Binary package hint: syslog-ng

System: Ubuntu 10.10 Maverick
Package syslog-ng Version: 3.1.2-1

After installing syslog-ng (sudo apt-get install syslog-ng), the file
/var/log/error filled up with the following errors:

Jan 11 10:49:33 pgfs syslog-ng[3363]: Error opening file for writing; 
filename='/var/log/syslog', error='Permission denied (13)'
Jan 11 10:49:33 pgfs syslog-ng[3363]: Error opening file for writing; 
filename='/var/log/messages', error='Permission denied (13)'
Jan 11 10:49:44 pgfs syslog-ng[3363]: Error opening file for writing; 
filename='/var/log/auth.log', error='Permission denied (13)'
Jan 11 10:49:44 pgfs syslog-ng[3363]: Error opening file for writing; 
filename='/var/log/auth.log', error='Permission denied (13)'
Jan 11 10:49:44 pgfs syslog-ng[3363]: Error opening file for writing; 
filename='/var/log/syslog', error='Permission denied (13)'
Jan 11 10:49:44 pgfs syslog-ng[3363]: Error opening file for writing; 
filename='/var/log/syslog', error='Permission denied (13)'

The reason is that syslogd ran as user: syslog group: adm, but syslog-ng
runs as user: root group:adm.

There are two solutions I can suggest:

(1) Change the option owner("root") to owner("syslog") in the file /etc
/syslog-ng/syslog-ng.conf distributed as part of the package.

(2) Have the installation procedure execute "chown root.adm" for all
logs listed as destinations in syslog-ng.conf.

There is one thing I'm confused about: Since syslog-ng runs as "root"
instead of "sysadm," why is it getting "Permission denied" errors? I
thought root shouldn't get those errors.

** Affects: syslog-ng (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  Installation of syslog-ng results in Permission denied (13) errors

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to