From owner-freebsd-questions@FreeBSD.ORG Sun Aug 31 13:27:23 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1E1E3D5 for ; Sun, 31 Aug 2014 13:27:23 +0000 (UTC) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DD7321747 for ; Sun, 31 Aug 2014 13:27:22 +0000 (UTC) Received: from [192.168.0.27] (rbn1-216-180-76-156.adsl.hiwaay.net [216.180.76.156]) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id s7VDQK9f015408 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sun, 31 Aug 2014 08:26:21 -0500 Message-ID: <540323F3.3070804@hiwaay.net> Date: Sun, 31 Aug 2014 08:32:35 -0500 From: "William A. Mahaffey III" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 CC: "FreeBSD Questions !!!!" Subject: Re: mission critical problem !!!! References: <54007A94.1020801@hiwaay.net> <20140831021308.GB38393@neutralgood.org> In-Reply-To: <20140831021308.GB38393@neutralgood.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Aug 2014 13:27:23 -0000 On 08/30/14 21:13, kpneal@pobox.com wrote: > On Fri, Aug 29, 2014 at 08:05:24AM -0500, William A. Mahaffey III wrote: >> >> .... I just pkg-installed nethack-nox11, then tried to run it as a >> regular user. I get the following: >> >> >> NetHack, Copyright 1985-2003 >> By Stichting Mathematisch Centrum and M. Stephenson. >> See license for details. >> No write permission to lock perm! >> >> Hit space to continue: >> >> >> Then back to the shell prompt :-( .... This obviously won't do, what's >> wrong here, more pilot error ? TIA .... > You can use ktrace to see what files and directories are being accessed > by NetHack: > > % ktrace -t cn NetHack > % kdump > > I don't know the name of the executable. You'll have to change "NetHack" > to be the correct executable name. > > Is NetHack setuid or setgid? If so you may need to unset those bits while > using ktrace to shoot down the problem. > > Personally, I swear by ktrace. It isn't as powerful/flexible as dtrace, > but the user interface just can't be beat. It's so straightforward doing > what it does that it has saved my bacon I've forgotten how many times. > Heck, one year I had to use it on MacOS X to get the commercial tax filing > software I was using actually working. I wound up searching the error msg on google & turned up a solution, the perms of one of the nethack dirs needed adjustment .... I did that & I am off to the races .... Thx :-) ..... -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr.