http://bugzilla.opensuse.org/show_bug.cgi?id=987452 Bug ID: 987452 Summary: home:luizluca:IPSIDS/suricata: USER variable in init.d script Classification: openSUSE Product: openSUSE.org Version: unspecified Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: 3rd party software Assignee: luizluca@tre-sc.jus.br Reporter: jesse.szwedko@getbraintree.com QA Contact: opensuse-communityscreening@forge.provo.novell.com Found By: --- Blocker: --- Hello! The use of the $USER environment variable in the init script to conditionally add the `--user` flag (https://build.opensuse.org/package/view_file/home:luizluca:IPSIDS/suricata/s...) seems like undesired behavior as this variable is defined by the `login` program and exists in your shell when opening a new session. Thus, by default, when the init process starts suricata, it correctly starts without `--user`, but when `sudo /etc/init.d/suricata restart` is issued from a shell, the process is restarted with `--user root`. I believe it would be better to use a separate environment variable that is not automatically added by the `login` program. -Jesse -- You are receiving this mail because: You are on the CC list for the bug.