Hi there.
I have a shell script ( https://github.com/bokiscout/dot-fil...an_controll.sh ) that is monitoring the temperature and fan speed of my GPU (Assus Strix RX 570).
To modify the fan speed I must edit some "files" (interfacing with the driver) that require root permissions.
I see two solutions but I displake them both. I want to hear if there is any better solution than this.
1. Change the permissions of the files.
Security night mare. I don't want to do this. Beside that after restart permissions are reverted back.
2. Execute the shell script as root
- I need to type the password every time I run this script. That is every time I turn on the PC. It's boring.
- Or pipe the password to the shell script. I don't want to write root password in plain text.
What is your suggestion to automate this?
Execution as systemd service maybe... Tell me some nice idea if You have one.
I have a shell script ( https://github.com/bokiscout/dot-fil...an_controll.sh ) that is monitoring the temperature and fan speed of my GPU (Assus Strix RX 570).
To modify the fan speed I must edit some "files" (interfacing with the driver) that require root permissions.
I see two solutions but I displake them both. I want to hear if there is any better solution than this.
1. Change the permissions of the files.
Security night mare. I don't want to do this. Beside that after restart permissions are reverted back.
2. Execute the shell script as root
- I need to type the password every time I run this script. That is every time I turn on the PC. It's boring.
- Or pipe the password to the shell script. I don't want to write root password in plain text.
What is your suggestion to automate this?
Execution as systemd service maybe... Tell me some nice idea if You have one.
Comment