{"action":"created","issue":{"url":"https://api.github.com/repos/balabit/syslog-ng/issues/549","labels_url":"https://api.github.com/repos/balabit/syslog-ng/issues/549/labels{/name}","comments_url":"https://api.github.com/repos/balabit/syslog-ng/issues/549/comments","events_url":"https://api.github.com/repos/balabit/syslog-ng/issues/549/events","html_url":"https://github.com/balabit/syslog-ng/issues/549","id":93486747,"number":549,"title":"Running syslog-ng as non-root user","user":{"login":"nitindeokate99","id":7916800,"avatar_url":"https://avatars.githubusercontent.com/u/7916800?v=3","gravatar_id":"","url":"https://api.github.com/users/nitindeokate99","html_url":"https://github.com/nitindeokate99","followers_url":"https://api.github.com/users/nitindeokate99/followers","following_url":"https://api.github.com/users/nitindeokate99/following{/other_user}","gists_url":"https://api.github.com/users/nitindeokate99/gists{/gist_id}","starred_url":"https://api.github.com/users/nitindeokate99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitindeokate99/subscriptions","organizations_url":"https://api.github.com/users/nitindeokate99/orgs","repos_url":"https://api.github.com/users/nitindeokate99/repos","events_url":"https://api.github.com/users/nitindeokate99/events{/privacy}","received_events_url":"https://api.github.com/users/nitindeokate99/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-07-07T09:44:52Z","updated_at":"2015-07-09T08:00:07Z","closed_at":null,"body":"I have c++ application through which on need basis it execs syslog-ng and stop once work is done. Till now I was invking my application as root user. now I want to run it as non-root user, but syslog-ng does not start. I tried with -u <user_name> option. also I tried setting setuid bit for syslog-ng binary. Both things wont work. Can somebody help me here?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/balabit/syslog-ng/issues/comments/119863965","html_url":"https://github.com/balabit/syslog-ng/issues/549#issuecomment-119863965","issue_url":"https://api.github.com/repos/balabit/syslog-ng/issues/549","id":119863965,"user":{"login":"pasztor","id":5630041,"avatar_url":"https://avatars.githubusercontent.com/u/5630041?v=3","gravatar_id":"","url":"https://api.github.com/users/pasztor","html_url":"https://github.com/pasztor","followers_url":"https://api.github.com/users/pasztor/followers","following_url":"https://api.github.com/users/pasztor/following{/other_user}","gists_url":"https://api.github.com/users/pasztor/gists{/gist_id}","starred_url":"https://api.github.com/users/pasztor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pasztor/subscriptions","organizations_url":"https://api.github.com/users/pasztor/orgs","repos_url":"https://api.github.com/users/pasztor/repos","events_url":"https://api.github.com/users/pasztor/events{/privacy}","received_events_url":"https://api.github.com/users/pasztor/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T08:00:07Z","updated_at":"2015-07-09T08:00:07Z","body":"One small thing: if your linux kernel is newer than 2.6.37, then you should give the cap_syslog cap too / instead of cap_sys_admin,\r\nand try to grab the output of the debug run.\r\nThere it will write it's own messages.\r\nOr another possibility to hunt down what does not work: try to wrap it with strace, and gave a -o tracefile.txt option to strace too, so there you will find the output of strace, and there we could see at least what it tries to open, what succeeds and what does not."}}