From owner-freebsd-questions Thu Nov 22 1:25:33 2001 Delivered-To: freebsd-questions@freebsd.org Received: from straylight.ringlet.net (sentinel.office1.bg [217.75.134.126]) by hub.freebsd.org (Postfix) with SMTP id 27A7737B426 for ; Thu, 22 Nov 2001 01:25:03 -0800 (PST) Received: (qmail 3173 invoked by uid 1000); 22 Nov 2001 09:24:17 -0000 Date: Thu, 22 Nov 2001 11:24:16 +0200 From: Peter Pentchev To: Anthony Atkielski Cc: FreeBSD Questions , freebsd-security@freebsd.org Subject: Re: setuid on nethack? Message-ID: <20011122112415.B855@straylight.oblivion.bg> Mail-Followup-To: Anthony Atkielski , FreeBSD Questions , freebsd-security@freebsd.org References: <014201c17336$40653f90$0a00000a@atkielski.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <014201c17336$40653f90$0a00000a@atkielski.com>; from anthony@freebie.atkielski.com on Thu, Nov 22, 2001 at 10:15:37AM +0100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Nov 22, 2001 at 10:15:37AM +0100, Anthony Atkielski wrote: > This morning I see an e-mail from the system telling me that setuid is set on > nethack, the adventure-style game that I installed recently. Why would this > game require this bit? I reset it with chmod 0544, which seems like plenty to > me. AFAIK, many games on Unix systems are setuid or setgid 'games', so that any user on the system can read and write the high scores and saved games. If you only intend to play Nethack from one particular system account, you should have no problem without the setuid bit, but make sure to set the appropriate owner/group/permissions on the high scores and saved games files/dirs. G'luck, Peter -- If this sentence didn't exist, somebody would have invented it. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message