TerrorByte mentioned an issue regardings the permissions, which has a frequent negative effect on the user experience: Permission issues between login user alarm , PirateBox user nobody and root user.
So you currently can not use SCP to transfer files or do modifications. You always need to switch between root and not root using sudo or su.
So, my first shot to solve this issue is the following approach:
- Make the alarm user like a second user for other applications
- Create a new user "piratebox" (or similar) (short puser) including a fixed UID, GID
- Adjust the LIGHTTPD User and Group to that user
- Add a manual step to add a password for puser , that it is usable beside alarm
- Change ownership of opt/piratebox to puser entirely
- Change SDCard and USB Mount scripts to add UID and GID for the new user as a mount option
I am bivalent about the sudo rights. It would be helpful to give users sudo rights, to do needed restart steps from the puser. But on the other side, you can enable root access as well then... it would be the same.
Mh.
What do you think? Opinions?
best regards Matthias