Installation of syslog-ng results in Permission denied (13) errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
syslog-ng (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
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=
Jan 11 10:49:33 pgfs syslog-ng[3363]: Error opening file for writing; filename=
Jan 11 10:49:44 pgfs syslog-ng[3363]: Error opening file for writing; filename=
Jan 11 10:49:44 pgfs syslog-ng[3363]: Error opening file for writing; filename=
Jan 11 10:49:44 pgfs syslog-ng[3363]: Error opening file for writing; filename=
Jan 11 10:49:44 pgfs syslog-ng[3363]: Error opening file for writing; filename=
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-
(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.
Changed in syslog-ng (Ubuntu): | |
status: | New → Confirmed |
Please update syslog-ng packege in backport to version syslog-ng 3.1.3-3.
http:// packages. qa.debian. org/s/syslog- ng/news/ 20110201T193207 Z.html
The version syslog-ng 3.1.2-1 contains more bugs.
Thx