UnamSanctam / UnamWebPanel

MIT License
175 stars 58 forks source link

First time login gets error if permissions are not set to chmod 777. #330

Closed Alcinzal closed 8 months ago

Alcinzal commented 8 months ago

These are the steps I have done:

I also tried sudo chown -R $USER:$USER html but did not work either.

Was just wondering why the login does not work the first time if the permissions are not set to 777? And is the way I have done it safe? Or are there any security risks since I put it at 777 one time? Because it seems everything works the way it should now, but I just want to be safe.

Thanks!

UnamSanctam commented 8 months ago

The database needs to be accessable (writable) for the brute force protection to work (if you enter the wrong password 5 times the IP gets blocked for 15 minutes) which is maybe why it returns an error. As long as the owner is correct only 755 should be needed, setting it to 777 once and then something else after that poses no security risks.

Alcinzal commented 8 months ago

Alright I understand! Thanks