AllStarLink / ASL3

AllStarLink Version 3
https://www.allstarlink.org
GNU Affero General Public License v3.0
17 stars 3 forks source link

All PolicyKit Rules for the asterisk User #99

Closed jxmx closed 1 month ago

jxmx commented 1 month ago

This is a PolicyKit ruleset to permit the asterisk user to execute a limited number of actions without the need for sudo or prompting for a password. Those are:

Using a combination of wrapper scripts and appropriate function configuration, Asterisk can restart itself, Allmon3, shutdown the system, or reboot the system. Use of the wrapper scripts for systemctl commands is essential for a clean execution of the scripts under the polkit rules. The provided wrappers are:

Allan-N commented 1 month ago

Why no asterisk-start?, allmon3-start?

Is there any impact to astup.sh, astdn.sh, and astres.sh? and are we duplicating what we already have?

ASL3 man has a copy/paste issue with script names (3 asterisks, 1 allmon3)

jxmx commented 1 month ago

I guess allmon3-start might make sense. What would be the point of asterisk-start?

The legacy compact scripts I hope go away. But they also have console output and stuff.

Allan-N commented 1 month ago

What would be the point of asterisk-start?

Symmetry ... and if we were to get rid of astup/dn/res...

Allan-N commented 1 month ago

PR notes

systemctl stop asterisk systemctl restart asterisk systemctl stop allmon3 systemctl restart asterisk. <-----

Allan-N commented 1 month ago

Is the "shutdown" command included?

jxmx commented 1 month ago

Removing the astXX.sh helper scripts was mentioned in one of the comments. Let's not rehash that debate here.

Fear not, I am not deleting them :)