{"id":14235,"date":"2025-02-22T22:00:56","date_gmt":"2025-02-23T06:00:56","guid":{"rendered":"https:\/\/www.apolonio.com\/blog\/?p=14235"},"modified":"2025-02-22T22:00:56","modified_gmt":"2025-02-23T06:00:56","slug":"using-mmcli-as-non-root","status":"publish","type":"post","link":"https:\/\/www.apolonio.com\/blog\/?p=14235","title":{"rendered":"Using mmcli as non-root"},"content":{"rendered":"\n<p>Trying to figure out how to send SMS messages using mmcli and not being root.<\/p>\n\n\n\n<p>I thought I had it and was ready.  Here are my short notes<\/p>\n\n\n\n<p>First you have to add the user to the dialout group<\/p>\n\n\n\n<p>Then you have to create a polkit rule<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>polkit.addRule(function(action, subject) {<br>if ((action.id == \"org.freedesktop.ModemManager1.Control\" || action.id == \"org.freedesktop.ModemManager1.Messaging\") &amp;&amp;<br>subject.isInGroup(\"dialout\")) {<br>return polkit.Result.YES;<br>}<br>});<\/code><\/pre>\n\n\n\n<p>Then reload polkit and you should be good.<\/p>\n\n\n\n<p>Want to try this from a fresh non gui system.  My change things.<\/p>\n\n\n\n<p>Weight: 339.8<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Trying to figure out how to send SMS messages using mmcli and not being root. I thought I had it and was ready. Here are my short notes First you have to add the user to the dialout group Then &hellip; <a href=\"https:\/\/www.apolonio.com\/blog\/?p=14235\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,11,3,9],"tags":[],"class_list":["post-14235","post","type-post","status-publish","format-standard","hentry","category-new-toys","category-technical","category-training","category-weighin"],"_links":{"self":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/14235","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14235"}],"version-history":[{"count":1,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/14235\/revisions"}],"predecessor-version":[{"id":14236,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/14235\/revisions\/14236"}],"wp:attachment":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}