From owner-freebsd-newbies Sat Jul 11 04:27:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA26525 for freebsd-newbies-outgoing; Sat, 11 Jul 1998 04:27:20 -0700 (PDT) (envelope-from owner-freebsd-newbies@FreeBSD.ORG) Received: from mail.axess.com (root@mail.axess.com [204.19.206.9]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA26520 for ; Sat, 11 Jul 1998 04:27:19 -0700 (PDT) (envelope-from ppawel@axess.com) Received: from ppawel (ppp-1.axess.com [204.19.207.1]) by mail.axess.com (8.8.5/8.7.2) with SMTP id HAA02218; Sat, 11 Jul 1998 07:27:37 -0400 Message-Id: <3.0.5.32.19980711072237.0079b5f0@mail.axess.com> X-Sender: ppawel@mail.axess.com X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32) Date: Sat, 11 Jul 1998 07:22:37 -0400 To: Sue Blake From: "Peter D. Pawelek" Subject: Re: Nethack Cc: freebsd-newbies@FreeBSD.ORG In-Reply-To: <19980711134239.05898@welearn.com.au> References: <19980707182114.A713@axess.com> <19980707141648.22213@welearn.com.au> <199807071611.JAA02155@pau-amma.whistle.com> <19980707182114.A713@axess.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org At 01:42 PM 7/11/98 +1000, you wrote: >If it shouldn't be necessary to be in the games group to play nethack, >and if the port and the package really do set permissions differently, >maybe the package needs looking at. > >Which is it? Well, I checked out DejaNews to see what other people have had to say about this: ------ BEGIN MESSAGE------ Subject: Re: No write permission to lock perm From: s.c.sprong@student.utwente.nl (S.C.Sprong) Date: 1997/09/02 Message-ID: <5uh9j6$dnc@dinkel.civ.utwente.nl> Newsgroups: rec.games.roguelike.nethack [More Headers] [Subscribe to rec.games.roguelike.nethack] Janne Anttila wrote: >I installed Nethack 3.2.2, and when I try to run it, I get the subject's >error message (even the file 'perm' has full write permissions). >How do I install Nethack properly? OS is Linux RedHat 4.2. I did a search in Dejanews, but I didn't find any authorative answer. This is from the Nethack Makefile: permission GAMESPERM 04755 FILEPERM 0644 EXEPERM 0755 DIRPERM 0755 The owner of all the files and the directory is games:games This is the standard setting when you're installing the binary distribution, but it gives the error you described, except for root. Try the following: - invite your personal account to the group 'games' - make the directory '../nethackdir' and '../nethackdir/save' group- and/or worldwritable - SUID nethack on execution I'm lazy and toggled just all of the above. I would be very interested hearing from you about the minimal changes necessary. My OS is FreeBSD 3.0, which is comparable to Linux. ------END MESSAGE------- ------BEGIN MESSAGE------ Subject: Re: Setting up for Multiuser system.. From: jmf9936@is4.nyu.edu (Josh) Date: 1997/08/15 Message-ID: Newsgroups: rec.games.roguelike.nethack [More Headers] [Subscribe to rec.games.roguelike.nethack] In article , Felius wrote: > I'm wondering if people could give me tips on setting up nethack on a > multiuser (FreeBSD) system. At the moment it's just sitting there owned > by root, and as our sysadmin doesn't play it (I'm working on him ;)) I > want to install it so I have wiz power, and can set stuff up.. > > I'm thinking that the best way may be to create a user named 'nethack', > and install it in their home directory.. What permissions would I have to > set to allow people to play it without letting them go crazy with > anything? (except maybe to copy their savefiles - as a means of backup > only. I recently lost a kick-ass V because the dungeon collapsed and I > didn't have privs to recover it before someone else played.. why doesn't > nethack check for existing lock files or whatever they are on a multiuser > system??) > > So, suggestions from anyone who's done this would be very welcome.. Call the user "wizard" or change the name (GAMEUID = xxx) in the Makefile. If you have a group that all your users belong to, put wizard in that group, so he has no abnormal permissions (on my Linux system, it's "users"). Again, change the Makefile (GAMEGID = xxx) to reflect whichever group you like. chown -R wizard:users /usr/local/nethack-3.2.2 (if that's the directory with all the sources) It's probably a good idea to edit include/config.h and #define SECURE so that lock-file thing will work... I don't #define MAX_NO_OF_USERS (or whatever it is), so I don't know how well that works, but if you're so successful at evangelizing nethack that it plays unacceptably slow, you might consider it. then do a "make install" and enjoy! Hope this helps, Josh ------END MESSAGE------ Unfortunately, I'm slumming it at the moment (ie. I'm in Windows95), so I'm not able to check the permissions of ~ and the nethack dirs on my system, but I'm speculating that the port has a script in it that sets up everything properly (unlike the package). Don't you just love DejaNews? You can find an answer to *anything* there! Peter Pawelek (ppawel@axess.com) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message