Hi there
When running the todo bundle I get the following error about 9 times in the output window:
/Library/Application Support/TextMate/Support/lib/textmate.rb:83: warning: Insecure world writable dir /Library/Application Support/ TextMate in PATH, mode 040777
Below, the Todos are displayed correctly. Is there an error on my side or is this a bug?
Oliver
On 09.10.2007, at 18:28, Oliver Hagmann wrote:
Hi there
When running the todo bundle I get the following error about 9 times in the output window:
/Library/Application Support/TextMate/Support/lib/textmate.rb:83: warning: Insecure world writable dir /Library/Application Support/ TextMate in PATH, mode 040777
Below, the Todos are displayed correctly. Is there an error on my side or is this a bug?
Oliver
Nice, that seems to be a feature rather than a bug :)
The command (which is written in ruby) invokes the `file` (/usr/bin/ file) Utility at that line, which it what generates the warning. It seems to have some built-in magic to detect that some directory is world writable (chmod a+w) when it should not. I guess your project references some files outside your home directory? I could try to suppress this warning, though.
You can easily fix it by running `chmod a-w $dir` where $dir is some directory of your project (Think about symlinks, too). Might probably need super user rights to do that. `sudo` is your friend here.
Soryu.
On 09/10/2007, at 19:36, Soryu wrote:
[...] The command (which is written in ruby) invokes the `file` (/usr/bin/ file) Utility at that line, which it what generates the warning. It seems to have some built-in magic to detect that some directory is world writable (chmod a+w) when it should not. [...]
This is a ‘feature’ built into Ruby. Each time you run a shell command from Ruby, it will check every folder in PATH (and every ancestor to that folder) for being world-writable and issue a warning if so. Here’s a simple way to reproduce it:
mkdir -p /tmp/foo; chmod a+w /tmp/foo; PATH="$PATH:/tmp/foo" ruby - e'`true`'
A world-writable folder in the PATH allows a malicious user (with access to the system) to place executables in that folder, which may then be executed instead of what the user intended (so a way to get the user to start trojans). But it is not Ruby’s place to complain about this -- personally I had a setup where all my applications were on a network drive (connected to my base station), which the OS mounts as world-writable, so I was getting this “warning” from Ruby all the time.
On 09.10.2007, at 19:36, Soryu wrote:
On 09.10.2007, at 18:28, Oliver Hagmann wrote:
Hi there
When running the todo bundle I get the following error about 9 times in the output window:
/Library/Application Support/TextMate/Support/lib/textmate.rb:83: warning: Insecure world writable dir /Library/Application Support/ TextMate in PATH, mode 040777
Below, the Todos are displayed correctly. Is there an error on my side or is this a bug?
Oliver
The command (which is written in ruby) invokes the `file` (/usr/bin/ file) Utility at that line, which it what generates the warning. It seems to have some built-in magic to detect that some directory is world writable (chmod a+w) when it should not. I guess your project references some files outside your home directory? I could try to suppress this warning, though.
You can easily fix it by running `chmod a-w $dir` where $dir is some directory of your project (Think about symlinks, too). Might probably need super user rights to do that. `sudo` is your friend here.
OK. So how do I find this said directory? I don't think I'm referencing any files outside my home directory. It's a LaTeX project with all files included in one folder lying in my Documents folder. The only file referenced outside this folder is a BibTex file which lies in "~/Library/texmf/bibtex/bib".
Any help greatly appreciated.
Oliver
On 10/10/2007, at 17:51, Oliver Hagmann wrote:
[...] warning: Insecure world writable dir /Library/Application Support/TextMate in PATH, mode 040777 [...]
OK. So how do I find this said directory? [...]
It was quoted in the warning message ;)
So try this from shell:
chmod 755 /Library/Application\ Support/TextMate
On 10.10.2007, at 17:56, Allan Odgaard wrote:
On 10/10/2007, at 17:51, Oliver Hagmann wrote:
[...] warning: Insecure world writable dir /Library/Application Support/TextMate in PATH, mode 040777 [...]
OK. So how do I find this said directory? [...]
It was quoted in the warning message ;)
So try this from shell:
chmod 755 /Library/Application\ Support/TextMate
aah...... Worked perfectly. No more errors now. Thanks! Oliver