fusion44 / blitz_api

A management backend for the RaspiBlitz project written in Python / FastAPI
MIT License
19 stars 18 forks source link

call_script with sudo #127

Closed openoms closed 2 years ago

openoms commented 2 years ago

Related to https://github.com/rootzoll/raspiblitz/pull/3191

Necessary for manipulating passwords while not running as the root user

fusion44 commented 2 years ago

Do all scripts require sudo? If not it might be advisable to create some sort of white-list of scripts that must be run with sudo and others will be run normally.

openoms commented 2 years ago

You are right, checking the password does not need sudo, so should have a separate function. Will make that small change on the raspiblitz side.