NetBSD Problem Report #39144
From www@NetBSD.org Mon Jul 14 06:30:56 2008
Received: from mail.netbsd.org (mail.netbsd.org [18.104.22.168])
by narn.NetBSD.org (Postfix) with ESMTP id 5A31863B89E
for <email@example.com>; Mon, 14 Jul 2008 06:30:56 +0000 (UTC)
Date: Mon, 14 Jul 2008 06:30:56 +0000 (UTC)
Subject: private /tmp not always initialized (sudo)
>Synopsis: private /tmp not always initialized (sudo)
>Arrival-Date: Mon Jul 14 06:35:01 +0000 2008
>Last-Modified: Mon Jul 14 07:00:03 +0000 2008
>Originator: George Michaelson
NetBSD snoid 4.99.69 NetBSD 4.99.69 (GGM) #1: Fri Jul 11 19:44:31 EST 2008 ggm@snoid:/usr/obj/sys/arch/i386/compile/GGM i386
login makes a users /private/tmp/@uid
sudo bash didn't make one for root.
install sudo, login as normal user, sudo bash
# cd /tmp
bash: cd: /tmp: No such file or directory
# ls -ltr
drwx-----T 2 ggm ggm 512 Jul 15 02:27 101
Not sure. what should initialize this? does this mean making sudo do something? It seems a shame to have to invoke the 'login' class of operations via flags to sudo, and since people haven't had to do that before, I wonder if this is going to bite people who sudo and expect /tmp to exist for root?
From: George Michaelson <firstname.lastname@example.org>
Subject: Re: misc/39144: private /tmp not always initialized (sudo)
Date: Mon, 14 Jul 2008 16:57:58 +1000
to be fair: the /private/tmp/0 link is made later on, but I can't say
when. On a clean system, inside 10-20min of the first boot with
per_user_tmp=YES it was not created in time for a sudo bash.
(what did make it? cron?)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.