From owner-freebsd-questions@FreeBSD.ORG Wed Mar 2 22:52:34 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9EE03106566C for ; Wed, 2 Mar 2011 22:52:34 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2AA6B8FC0C for ; Wed, 2 Mar 2011 22:52:33 +0000 (UTC) Received: by bwz12 with SMTP id 12so705901bwz.13 for ; Wed, 02 Mar 2011 14:52:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=EtF2gA17f6t5p822oQGBH7KkFqkncIu/93s/8slejTk=; b=v5bVr+7QTtpk5jeccnQPYUBGFjy7st8QQ+ajuA8j1JFFWYLVfxT7S7jO2AoIjyN9ss cRHY4qGs4wGe2ozdXHr7buwUHupyCDLb0qa9MF043CYjbTTfrpqUQz9gsw9l3r295aus Y+S9wpS1HMw97IDx/RD0HrjPmGaeo+ndEPaUg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=gD01yuta7sFTtMh709zwHO8qn3IwwZbtoRpkS+8P+++HHgMzXV8Uegu1DuL2JeI5Mw vbXZZ9QoLaHoU4yjmiitpxaPXQ7ekeYipY6s3Z5OVhxouXmY7OF6r08sWUjqA/Rm1SZS R/6ZYYt4pF5jzXFLQDxoMk7cwRNguMEnBmG/s= Received: by 10.205.34.129 with SMTP id ss1mr378633bkb.33.1299106352329; Wed, 02 Mar 2011 14:52:32 -0800 (PST) Received: from Melon.malikania.fr (65.21.102-84.rev.gaoland.net [84.102.21.65]) by mx.google.com with ESMTPS id q18sm343769bka.3.2011.03.02.14.52.31 (version=SSLv3 cipher=OTHER); Wed, 02 Mar 2011 14:52:31 -0800 (PST) Message-ID: <4D6ECA01.40002@gmail.com> Date: Wed, 02 Mar 2011 23:51:45 +0100 From: David Demelier User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.13) Gecko/20110125 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Question about nethack and setgid X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2011 22:52:34 -0000 Hello, I don't understand how nethack can store the score in /usr/local/lib/nethack/logfile. the real binary is here /usr/local/lib/nethack/nethack And the mode is -rwxr-sr-x 1 games games 1793635 25 Jan 2011 /usr/local/lib/nethack/nethack So that means people in games group will run nethack as games user (owner of file) but I'm not in games group ! and I can save the file located in /usr/local/lib/nethack/logfile which mode is -rw-rw-r-- games games I'm writing a game that will store file too, because I can't make it works like nethack I was planning using the setuid mode but I don't like much this .. What am I misunderstanding? Cheers, -- David Demelier