{"id":30,"date":"2017-01-29T18:36:44","date_gmt":"2017-01-29T15:36:44","guid":{"rendered":"http:\/\/saraseka.name\/?p=30"},"modified":"2022-08-18T13:10:49","modified_gmt":"2022-08-18T10:10:49","slug":"%d0%b8%d0%b7%d0%bc%d0%b5%d0%bd%d0%b8%d1%82%d1%8c-%d0%bf%d0%be%d0%bb%d1%8c%d0%b7%d0%be%d0%b2%d0%b0%d1%82%d0%b5%d0%bb%d1%8f-zabbix_angent","status":"publish","type":"post","link":"https:\/\/saraseka.name\/en\/2017\/01\/29\/%d0%b8%d0%b7%d0%bc%d0%b5%d0%bd%d0%b8%d1%82%d1%8c-%d0%bf%d0%be%d0%bb%d1%8c%d0%b7%d0%be%d0%b2%d0%b0%d1%82%d0%b5%d0%bb%d1%8f-zabbix_angent\/","title":{"rendered":"Change zabbix_agent user"},"content":{"rendered":"<p>To change runtime user simply change the user name in the following files after you run .\/configure [options]<br \/>\nFile configure:<br \/>\n<!--more--><\/p>\n<pre class=\"theme:secrets-of-rock lang:c++ mark:5 decode:true\" title=\"configure\">int\r\nmain ()\r\n{\r\n\r\nchar *user = \"new-zabbix\"; &lt;--- change this to your new runtime user\r\ninitgroups(user, 0);\r\n\r\n;\r\nreturn 0;\r\n}<\/pre>\n<p>File\u00a0configure.in:<\/p>\n<pre class=\"theme:secrets-of-rock lang:c++ mark:2 decode:true\" title=\"configure.in\">[\r\nchar *user = \"new-zabbix\"; &lt;--- change this to your new runtime user\r\ninitgroups(user, 0);\r\n],<\/pre>\n<p>File\u00a0src\/libs\/zbxnix\/daemon.c:<\/p>\n<pre class=\"theme:secrets-of-rock lang:c decode:true  \" title=\"src\/libs\/zbxnix\/daemon.c\">char user[10] = \"flzabbix\"; &lt;--- change this to your new runtime user<\/pre>\n<p><strong> Remember this is C and you must appropriately size the char array based on the length of your new runtime user.<\/strong><\/p>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>Sorry, this entry is only available in Russian.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[14,13],"tags":[15,16],"_links":{"self":[{"href":"https:\/\/saraseka.name\/en\/wp-json\/wp\/v2\/posts\/30"}],"collection":[{"href":"https:\/\/saraseka.name\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/saraseka.name\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/saraseka.name\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/saraseka.name\/en\/wp-json\/wp\/v2\/comments?post=30"}],"version-history":[{"count":11,"href":"https:\/\/saraseka.name\/en\/wp-json\/wp\/v2\/posts\/30\/revisions"}],"predecessor-version":[{"id":44,"href":"https:\/\/saraseka.name\/en\/wp-json\/wp\/v2\/posts\/30\/revisions\/44"}],"wp:attachment":[{"href":"https:\/\/saraseka.name\/en\/wp-json\/wp\/v2\/media?parent=30"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/saraseka.name\/en\/wp-json\/wp\/v2\/categories?post=30"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/saraseka.name\/en\/wp-json\/wp\/v2\/tags?post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}