Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Aug 2000 10:45:05 +0100
From:      Mark Ovens <marko@freebsd.org>
To:        John Murphy <bigotfo@bigfoot.com>
Cc:        questions@freebsd.org
Subject:   Re: TkDesk will not start as normal user
Message-ID:  <20000813104505.C254@parish>
In-Reply-To: <AsmVOYviHBc0qtX6%2B2azVveOxvx6@4ax.com>; from bigotfo@bigfoot.com on Sat, Aug 12, 2000 at 11:10:27PM %2B0100
References:  <AsmVOYviHBc0qtX6%2B2azVveOxvx6@4ax.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000813104505.C254>