Tags:
create new tag
, view all tags

Question

While running http://server/bin/testenv I get: Insecure directory in $ENV{PATH} while running with -T switch at C:/twiki/bin/testenv line 260.

Please advice where to move to with this error. Also I want to know where the PATH printed by testenv does come from. I want to get rid of it and I can not. I have nothing in PATH in System/Envt in Windows, I have nothing like it in dos or cygwin window. And some dirs in that path do not even exist.

So the path from testenv is: PATH /c/Perl/bin/:/c/Program Files/Compaq/Compaq Management Agents/Dmi/Win32/Bin:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/batchdir:.:/c/cvs/cvsnt:/c/jdk1.3.1_12/bin:/c/NBS/bin/jakarta-ant-1.5.1/bin:/c/Program Files/Microsoft SQL Server/80/Tools/BINN:/c/Installation/NAnt/nant-0.85-rc1/bin:/c/Installation/TWiki++/Gcc/bin

Environment

TWiki version: latest
TWiki plugins:  
Server OS: XP
Web server: Apache2
Perl version: 5.8.3
Client OS: XP
Web Browser: IE 7
Categories:  

-- NikolaySkachkov - 28 Jan 2005

Answer

Probably you have an insecure directory somewhere on your PATH, i.e. any user can write to the directory. As a temporary fix to let you run testenv, you can just remove the T switch in -wT on the first line of that script. However, the real fix is to look for Google:insecure+directory+xp+twiki and try the solutions listed in there - otherwise you'll get the same problem with other scripts.

testenv doesn't set the PATH, it just uses what's in your environment - check the Windows documentation for how to fix this. You can also set $safeEnvPath in TWiki.cfg which sets a shorter path (may also fix this error).

-- RichardDonkin - 31 Jan 2005

 
Topic revision: r4 - 2005-03-02 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.