FS#73353 - [nethack] setgid nethack can't write game files
Attached to Project:
Community Packages
Opened by Joost Molenaar (j0057_1) - Thursday, 13 January 2022, 21:52 GMT
Last edited by Ivy Foster (escondida) - Tuesday, 27 September 2022, 15:40 GMT
Opened by Joost Molenaar (j0057_1) - Thursday, 13 January 2022, 21:52 GMT
Last edited by Ivy Foster (escondida) - Tuesday, 27 September 2022, 15:40 GMT
|
Details
Description:
As it currently is, the game won't start, because all the files in /var/games/nethack are owned by root:root, and the game needs them to be owned by root:nethack. Additional info: * package version: 3.6.6-2 -- it looks like uninstalling 3.6.6-2, removing /var/games and then installing 3.6.6-1 fixes the problem. Steps to reproduce: * Install and run |
This task depends upon
attached is a patch that does so. Second patch fixes a compilation
warning about a define being set twice.
The /var/games/ directory is now owned by the games group but the nethack directory inside is not:
$ ls -ld /var/games
drwxrwxr-x 1 root games 14 Jun 10 12:31 /var/games
$ ls -l /var/games
total 0
drwxrwxr-x 1 root root 110 Jun 10 12:34 nethack
$
So the game still won't start under a normal user.
This gets it working:
chgrp -R games /var/games/nethack