mxcl/homebrew — pull request #8765 by samfoo (2011-11-24 07:50:15+00:00)
Title: Existing nethack permissions caused a crash #5524

In multi-user systems for certain, and possibly in other situations
(possibly related to installing with `$ sudo brew install nethack`),
nethack permissions were set incorrectly. Nethack wants to be able to
create save files in $NETHACKDIR/libexec/save, but the folder lacked
group permissions to allow this.

Additionally, it needs to be able to write the lock (perm) file, but
didn't have permission to do this either.

NOTE: If someone now installs nethack, and a different user plays,
leaving a save file around. If the original owner (admin, presumably)
tries to uninstall they will have to use `sudo`.