Zhao Yi wrote:
> When my ruby runs an external program, it will get this warning:
>  warning: Insecure world writable dir SOMEDIR
> 
> I have checked the SOMEDIR and its permission mode is 777.

Which means it's world-writable, as the warning says. In octal:

    7   7   7
   111 111 111
   rwx rwx rwx    (user, group, world)

The warning comes from path_check_0 in file.c, which in turn is called 
from rb_path_check, which checks each of the directories in your PATH.

It's basically saying: when you do system("foo"), one of your PATH 
directories is world writable, so any random user on your system could 
have installed their own "foo" executable which does whatever they like 
(e.g. changing your password, or mailing your pr0n collection to your 
girlfriend :-)

> How can I avoid this?

man chmod
-- 
Posted via http://www.ruby-forum.com/.