Using mmcli as non-root

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 you have to create a polkit rule

polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.ModemManager1.Control" || action.id == "org.freedesktop.ModemManager1.Messaging") &&
subject.isInGroup("dialout")) {
return polkit.Result.YES;
}
});

Then reload polkit and you should be good.

Want to try this from a fresh non gui system. My change things.

Weight: 339.8

This entry was posted in New Toys, Technical, Training, Weigh In. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.