Hi, On 03-06-17 18:46, Antonio Trande wrote:
Hi all. Crawl is not correctly working because of lack of directory permissions. How can i correctly/safely set that permissions for saving data files of Crawl? Bugzilla ticket: https://bugzilla.redhat.com/show_bug.cgi?id=1458489 Affected package: https://admin.fedoraproject.org/pkgdb/package/rpms/crawl/
See: https://fedoraproject.org/wiki/SIGs/Games/Packaging Starting at "If necessary, a game can be made setgid 'games' in order to allow a shared scoreboard file..." note that for games like this you will typically want to use a game specific user and a crawl directory under /var/games, so that you get /var/games/crawl which is owned by the group crawl and then make the crawl binary sgid crawl. Actually if you do that you can skip the dropping rights dance described since a rogue-ish game like crawl properly will have multiple places where it opens files and thus will be hard to get right wrt dropping sgid rights. Alternatively you could just make it access all shared files on a per user basis putting them in $HOME/.config/crawl you can user getenv("HOME") from C to get the users homedir, in that case don't forget to call mkdir to create the $HOME/.config and again for $HOME/.config/crawl (and ignore error returns since if the dirs exist mkdir will give an error). Regards, Hans _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx