Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14145 - nethack-gnome can't write to directory
Summary: nethack-gnome can't write to directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-18 11:02 UTC by Jonathan Nall
Modified: 2003-06-22 19:54 UTC (History)
1 user (show)

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 Jonathan Nall 2003-01-18 11:02:50 UTC
it appears that nethack is installed with the suid bit set. it's chown'ed
games:games. however, the gnome front end wants to make sure some directories in
my $HOME exist and tries to mkdir() them. $HOME does not let other users write
to it, so nethack errors out with:
> nethack
Gnome-ERROR **: Could not create per-user Gnome directory </root/.gnome> - aborting
aborting...
Aborted

if i remove the suid bit, it seems nethack can't write to its own directory:
> nethack 
Warning: cannot write scoreboard file record
No write permission to lock perm!

not sure how this ought to be handled, but it seems the current strategy doesn't
work (at least for the gnome front end).
Comment 1 SpanKY gentoo-dev 2003-02-21 16:54:04 UTC
*** Bug 16162 has been marked as a duplicate of this bug. ***
Comment 2 SpanKY gentoo-dev 2003-06-22 19:53:36 UTC
ok, i removed the setuid bit so it should work now 
 
http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/app-games/nethack/nethack-3.4.1.ebuild.diff?r1=1.6&r2=1.7 
Comment 3 SpanKY gentoo-dev 2003-06-22 19:54:48 UTC
works now ...