Re: my Linux users can't save



Wil Hunt <XwilOhuntX@xxxxxxxxxxxxxxxx> writes:

> Wuphon's Reach wrote:
>
>> After a bit more digging and testing... I think the above
>> permissions are correct. The users are able to write updates to the
>> score file on Gentoo, my mistake was not suiciding to force an
>> update to the score file. (When you exit without dying, Angband
>> merely displays a "ghost" entry in the output of the score file for
>> your current character.)
>
> And on Gentoo, the Angband directories are set to the games group.
> Any users that you want to be able to play Angband should be a member
> of that group.

That's not the right way to do it, unless you have some strange
policy that some people are allowed access to games, but not others.

It is better to make the executable sgid games.

chmod g+s .../angband

Of course you need to make sure that the group has write access
to the files/directories where it is needed.


Eddie
.



Relevant Pages

  • Re: [V 3.0.5] NetBSD question
    ... Angband should _not_ be setuid root. ... The correct thing to do is to have a special user or group for games ... and make the binary setuid or setgid to that group. ... users comprise a sort of attack vector between programs. ...
    (rec.games.roguelike.angband)
  • Re: Angband 3.0.8 prerelease
    ... This sounds like it would be interesting for a few games. ... item and immediately silently set it to squelch (this will apply from everything ... think the move to ook as the main place to discuss changes to V is ... R.g.r.a has been the center of Angband, or V at least, ...
    (rec.games.roguelike.angband)
  • Re: Req: c++ sourcecode
    ... > tutorials to get him started understanding the existing RL code bases. ... a new design than to retrofit in a translation. ... Translating to C++ involved C code bases like Angband requires much ... For the OP C++ games can be positive or negative examples of how to ...
    (rec.games.roguelike.development)
  • Re: debian gnu vs. gentoo?
    ... or if Linux runs games well. ... exactly are you wanting to do Gentoo? ... IMHO - the only real reason to ...
    (alt.os.linux)
  • Re: NetBSD question
    ... account that runs $10/mo or $100/yr. ... with limited privileges but full access to the savefiles and read ... and run angband setuid games instead. ... directory was group owned by "games" but angband wasn't setgid games. ...
    (rec.games.roguelike.angband)