Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 14145

Summary: nethack-gnome can't write to directory
Product: Gentoo Linux Reporter: Jonathan Nall <nall>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal CC: toby
Priority: High    
Version: 1.4_rc1   
Hardware: PPC   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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 ...