[Bug 228565] sysutils/syslog-ng fails to start when run as non-root

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon May 28 14:25:15 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228565

            Bug ID: 228565
           Summary: sysutils/syslog-ng fails to start when run as non-root
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: cy at FreeBSD.org
          Reporter: rainer at ultra-secure.de
             Flags: maintainer-feedback?(cy at FreeBSD.org)
          Assignee: cy at FreeBSD.org

/usr/local/etc/rc.d/syslog-ng start

Starting syslog_ng.
[2018-05-28T16:17:47.635296] Error binding socket;
addr='AF_UNIX(/var/run/log)', error='Permission denied (13)'
[2018-05-28T16:17:47.635354] Error initializing message pipeline; plugin
name='unix-dgram', location='source generator system:4:14'
/usr/local/etc/rc.d/syslog-ng: WARNING: failed to start syslog_ng



syslog-ng314 on FreeBSD 11.1 amd64, built from 2018Q2 ports-tree cut.

With syslog-ng.conf.dist as syslog-ng.conf configfile.

One has to create a subdirectory in /var/run to house the files for ctl and
persist.

syslogd_enable="NO"
syslog_ng_enable="YES"
syslog_ng_config="-u daemon -c /var/run/syslog-ng/syslog-ng.ctl -R
/var/run/syslog-ng/syslog-ng.persist-"
syslog_ng_pid="/var/run/syslog.pid"


I assume I'd have to switch that file to the subdirectory, too - but how do I
do that?


Is running it as non-root actually supported?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list