[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-games-devel
Subject:    Re: [Kde-games-devel] KHighscore
From:       Josef Spillner <dr_maux () maux ! de>
Date:       2001-04-30 13:30:51
[Download RAW message or body]

On Monday, 30. April 2001 14:29, Burkhard Lehner wrote:
> Every KDE game is suid to a user named "games" (or something similar). This
> way the game has the right to modify the highscore list (which has of
> course the same owner).

The Linux Standard Base (or FHS? It's confusing...) recommends to let the 
game be executed as the _group_ games, not user.

This is easily to do:
chown root.games /usr/bin/mygame
chmod 2755 /usr/bin/mygame (a.k.a. sgid 'games')
touch /var/games/mygame.hiscore
chown root.games /var/games/mygame.hiscore
chmod 644 /var/games/mygame.hiscore

> I'm not a makefile expert. How easy will it be to let "make install" create
> a new user automatically, if it doesn't yet exist?

The group 'games' is standard. Even standard enough that /var/games hasn't 
been merged with /var/lib/games :)
A make install can safely execute the commands above. Paranoid persons could 
do something like this:

grep "games" /etc/group >/dev/null || echo 'Attention! Group games not found!'

Josef
_______________________________________________
Kde-games-devel mailing list
Kde-games-devel@master.kde.org
http://master.kde.org/mailman/listinfo/kde-games-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic