From owner-freebsd-questions Sun Aug 13 2:45:26 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by hub.freebsd.org (Postfix) with ESMTP id 830FD37B70E for ; Sun, 13 Aug 2000 02:45:22 -0700 (PDT) (envelope-from mark@ukug.uk.freebsd.org) Received: from parish.my.domain ([62.255.96.59]) by mta06-svc.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20000813094520.EWQY312.mta06-svc.ntlworld.com@parish.my.domain>; Sun, 13 Aug 2000 10:45:20 +0100 Received: (from mark@localhost) by parish.my.domain (8.9.3/8.9.3) id KAA01290; Sun, 13 Aug 2000 10:45:05 +0100 (BST) (envelope-from mark) Date: Sun, 13 Aug 2000 10:45:05 +0100 From: Mark Ovens To: John Murphy Cc: questions@freebsd.org Subject: Re: TkDesk will not start as normal user Message-ID: <20000813104505.C254@parish> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: ; from bigotfo@bigfoot.com on Sat, Aug 12, 2000 at 11:10:27PM +0100 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Aug 12, 2000 at 11:10:27PM +0100, John Murphy wrote: > FreeBSD-4.1 Release, XFree86-4.0.1, TkDesk-1.2 pkg. > > I thought I'd be able to work this one out, but my investigations seem > only to deepen my confusion. > > TkDesk starts fine if started by root, but as user john (wheel & network) > no go. As root or as john su'd it creates a directory in /tmp as > tkdeskPID where PID is the number of the tkdesk process. > (/tmp is a symbolic link to /usr/tmp) > One thing to check; does /usr/tmp have the sticky bit set? # ls -ld /usr/tmp drwxrwxrwt 13 root wheel 2560 13 Aug 10:40 /usr/tmp ^ > User john can create a directory in /tmp but the owner is john whereas > the directory is created as owned by root whenever TkDesk works. > > The message is (with tkdesk -debug): > TkDesk: Couldn't create temp dir /tmp/tkdesk1105 > TkDesk: errmsg: couldn't create error file for command: permission denied > TkDesk: Exiting > > Then I really got confused when I went to /var/db/pkg/tkdesk-1.2 > > 114.chucky /var/db/pkg/tkdesk-1.2 # ll > total 47 > -rw-r--r-- 1 root wheel 59 Jul 20 15:31 +COMMENT > -rw-r--r-- 1 root wheel 45797 Aug 3 02:37 +CONTENTS > -rw-r--r-- 1 root wheel 148 Jul 20 15:31 +DESC > # vi +COMMENT > ~ > ~ > ~ etc > /tmp/vi.PUZx0d1063: new file: line 1 > ZZ'd out of there. For filenames beginning with ``+'' with vi(1) you need to do ``vi ./+COMMENT'' as ``+'' is a synonym for ``-c'' (actually -c is a synonym for +, but you get the point). See the -c option in the vi(1) manpage. > > Same effect with ee and yet: > > # cat +COMMENT > A graphical, highly configurable and powerful file manager > > # whoami > root > > I always feel I've lost it when I ask my computer whoami! :) > > TIA root. > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- 4.4 - The number of the Beastie ________________________________________________________________ 51.44°N FreeBSD - The Power To Serve http://www.freebsd.org 2.057°W My Webpage http://ukug.uk.freebsd.org/~mark mailto:marko@freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message