Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31754 - savagedemo runnable only by root after install
Summary: savagedemo runnable only by root after install
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-22 10:36 UTC by Richard Unger
Modified: 2003-10-27 13:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Unger 2003-10-22 10:36:22 UTC
After emerge the savagedemo is playable only by root, whereas any member of the games group should be able to play.

The reason is that the updater, which runs each time before the game starts cannot create files in its updater directory if not running as the root user.

The problem can be corrected by making the /opt/savagedemo/updater directory and all files contained inside group writable.

Richie
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2003-10-22 13:39:30 UTC
I'll grab this one.
Comment 2 SpanKY gentoo-dev 2003-10-22 19:37:09 UTC
the last line of the ebuild is this:
chmod -R g+w ${D}/${dir}/updater
where ${dir} = /opt/savagedemo

the original ebuild i put into portage did not have this, so it may be possible
you emerged that version ...
Comment 3 Richard Unger 2003-10-24 08:00:58 UTC
Hi!

I merged version:
 *  games-fps/savagedemo
      Latest version available: 0
      Latest version installed: 0
Hmmm?

That does not really tell us much.

There is another issue as well, namely I installed the update as root, the
first time I successfully ran the game. While it is confirmed that the game
is runnable by people in the games group after the updater directory is made
writeable AND after the update has been run by root, it is not confirmed
that users in the games group can actually perform the update - they may
need rights for more files in the savagedemo directory itself.
Did anyone try this?

Richie
Comment 4 SpanKY gentoo-dev 2003-10-27 13:29:19 UTC
savage seemed to update and run correctly as non root ...

as for the dir not having its permissions set, this is a bug in games.eclass
that
wasnt noticed due to the fact that it only happens when the variable $dir
is used
and when it is used after prepgamesdirs and when dir wasnt originally $GAMES_BINDIR
:)

fixed in cvs