freeciv / freeciv-web

Freeciv-web is an Open Source strategy game implemented in HTML5 and WebGL, which can be played online against other players, or in single player mode against AI opponents.
Other
2k stars 331 forks source link

Savegame bug #199

Closed andreasrosdal closed 6 years ago

andreasrosdal commented 6 years ago

http://forum.freeciv.org/f/viewtopic.php?f=24&t=90393

lonemadmax commented 6 years ago

I don't see anything. Can you check the directory permissions and acls for their users and one that works? I have successfully saved games under madmax.

andreasrosdal commented 6 years ago

it seems archimedes savegame directory is owned by tomcat, while yours is owned by the freeciv user.

lonemadmax commented 6 years ago

With no writing permissions for "other" and also no effective acl to do so, I guess. Which would explain the server not being able to save games. What I don't know is why tomcat owns archimedes (and jacknoir and probably more?). Maybe that's how isotrident started life and the affected players are the ones that had saved games before https://github.com/Isotrident/Isotrident/commit/33b587b97814960e676f2cc1dbd69ef8ad5ce86f or some other change?

If I'm not wrong, the current setting is that webapps/data and everything below is owned by the freeciv user (maybe not hall of fame maps), with acls so that tomcat can read, write and navigate for things like getting and deleting savegames, and freeciv server creating the directories with group access to allow the acl rules do their thing.

andreasrosdal commented 6 years ago

I have done some chmod on the server. seems to work.