Date: Sat, 11 Jul 1998 07:22:37 -0400 From: "Peter D. Pawelek" <ppawel@axess.com> To: Sue Blake <sue@welearn.com.au> Cc: freebsd-newbies@FreeBSD.ORG Subject: Re: Nethack Message-ID: <3.0.5.32.19980711072237.0079b5f0@mail.axess.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <jeanttil@cc.hut.fi> 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: <jmf9936-ya02408000R1508971504150001@news.nyu.edu> Newsgroups: rec.games.roguelike.nethack [More Headers] [Subscribe to rec.games.roguelike.nethack] In article <Pine.BSF.3.96.970814233410.3957A-100000@depravitas.tuu.utas.edu.au>, Felius <jrdalton@depravitas.tuu.utas.edu.au> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.19980711072237.0079b5f0>