NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

misc/39144: private /tmp not always initialized (sudo)



>Number:         39144
>Category:       misc
>Synopsis:       private /tmp not always initialized (sudo)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 14 06:35:01 +0000 2008
>Originator:     George Michaelson
>Release:        current
>Organization:
>Environment:
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
>Description:
login makes a users /private/tmp/@uid

sudo bash didn't make one for root.

-G
>How-To-Repeat:
install sudo, login as normal user, sudo bash

# cd /tmp 
bash: cd: /tmp: No such file or directory
# pwd
/private/tmp
# ls -ltr
total 2
drwx-----T  2 ggm  ggm  512 Jul 15 02:27 101
#
>Fix:
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?



Home | Main Index | Thread Index | Old Index