Closed Striffly closed 1 month ago
What is your setup? With a freshly installed Debian 12, the default user is not configured as "sudoer". Did you install Pi.Alert as root, or did you configure your user as "sudoer"?
I use a Debian 12 with PiHole & PiVPN, & with a custom user who is sudoer (no problem when installing PiHole & PiVPN).
I have set up a virtual machine for testing with the Debian 12.5 ISO. I had to do the following things before installing Pi.Alert
Then I did an installation with "sudo", which results in Pi.Alert being installed under "/root". Afterwards, the "pialert.conf" could be edited and saved as desired via the web interface.
Here are the permissions of the file after successful editing via the web interface.
I then deleted Pi.Alert again and reinstalled it under the user I had set up during the installation. Again, everything works as expected.
Here are the permissions of the file after successful editing via the web interface.
Okay, I'll do a double check about this Thank you for your follow-up
Is there an existing issue for this?
Current Behavior
When I edit the configuration file from the WebUI interface, I get an error 500 related to
front/php/server/files.php
, because the script can't write toconfig/pialert.conf
file.Environment
OS: Debian 12 Environment: native Platform: Arm
Anything else?
This error is due to the fact that the user
www-data
does not belong to the group of the user (for example:joe
) in which the pialert folder is located (/home/joe
). One solution would be to create a dedicated user (pialert
) in which the installation would be performed, and addwww-data
to thepialert
group.