Linux dpkg Software Report

Steve Flynn anothermindbomb at gmail.com
Thu Dec 24 11:16:37 UTC 2009


On Thu, Dec 24, 2009 at 11:02 AM, Ray Parrish <crp at cmc.net> wrote:

>> It should also use the user's preferred temp directory (or /tmp
>> or /var/tmp), rather than writing files to a directory under it's
>> install location.
>>
> I was not aware that this could be done without running the script with
> sudo, and thought it would be safer for people to have it writing files
> into folders they were allowed to write to without administrative
> privileges, so it cannot write to administrative areas of the drive
> structure.

/tmp and /var/tmp should be world writable and thus any process should
be able to stash files in there. Be careful though when you "rm -f
*.html" in your script as you don't want to end up blatign some other
processes temporary html files away.

Code defensively and assume nothing.

-- 
Steve
When one person suffers from a delusion it is insanity. When many
people suffer from a delusion it is called religion.

09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0




More information about the ubuntu-users mailing list