{"id":7817,"date":"2025-09-16T13:09:23","date_gmt":"2025-09-16T10:09:23","guid":{"rendered":"https:\/\/mummila.net\/kommentit\/?p=7817"},"modified":"2025-09-16T13:09:23","modified_gmt":"2025-09-16T10:09:23","slug":"yes-it-seems-to-work-as-expected-i-e-identically-with-both-og-and-sudo-rs-with-the-lines-split-in-either-order","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2025\/09\/16\/yes-it-seems-to-work-as-expected-i-e-identically-with-both-og-and-sudo-rs-with-the-lines-split-in-either-order\/","title":{"rendered":"Yes, it seems to work as expected (i.e. identically with both OG and sudo-rs) with the lines split, in either order"},"content":{"rendered":"<p>Yes, it seems to work as expected (i.e. identically with both OG and sudo-rs) when the are lines split, in either order, as long as\u00a0<code class=\"notranslate\">timestamp_timeout<\/code>\u00a0value is unquoted. Double-quoting it again causes the &#8221;expected nonnegative number&#8221; error (regardless of whether that line is first or second).<\/p>\n<pre><code>$ sudo-rs chown jani:jani test\r\n\/etc\/sudoers.d\/90-ssh-auth-sock:2:39: expected nonnegative number\r\nDefaults!\/bin\/chown timestamp_timeout=\"0\"\r\n                                      ^\r\n$ sudo cat \/etc\/sudoers.d\/90-ssh-auth-sock \r\n[sudo] password for jani:\r\nDefaults!\/bin\/chown env_keep+=\"SSH_AUTH_SOCK\"\r\nDefaults!\/bin\/chown timestamp_timeout=\"0\"<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Only double-quoting the timestamp_timeout value again causes the &#8221;expected nonnegative number&#8221; error (regardless of the order of the lines).<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[23025],"class_list":["post-7817","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","tag-sudo","sijainti-github"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/7817","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=7817"}],"version-history":[{"count":1,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/7817\/revisions"}],"predecessor-version":[{"id":7818,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/7817\/revisions\/7818"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=7817"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=7817"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=7817"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}