From: Thien Vuong Date: 2003-11-25T14:32:13+09:00 Subject: Re: Message "Insecure world writable dir ..." Harry Ohlsen wrote: > Thien Vuong wrote: > > >> The fix/workaround is to remove the component out of the path (or "."). >> Don't have to change the dir setting. Unless one insists on executing >> out of those directory. > > > Note that the warning is produced if *any* sub-directory of a directory > in the path is world writable. For example, in my case, I have my own > "bin" directory in the path ... /export/home/harryo/bin. That directory > isn't world writable, but Ruby picks up that one of the directories > above it is (ie, /export/home in this case). > > H. Hm, I don't have the same result [1.21:14:22] tvuong>cd /tmp [2.21:14:26] tmp>PATH=".:/bin:/home/eng/tools/bin" [3.21:14:39] tmp>irb-1.8 irb(main):001:0> system "date" (irb):1: warning: Insecure world writable dir /tmp/., mode 041777 Mon Nov 24 21:14:49 PST 2003 => true irb(main):002:0> [8.21:16:41] tmp>ls -ld ./bin drwxrwxr-x 2 tvuong eng 69 Nov 24 21:11 ./bin irb(main):004:0> [4.21:15:04] tmp>cd ./bin [6.21:15:13] bin>irb-1.8 irb(main):001:0> system "date" Mon Nov 24 21:15:24 PST 2003 => true irb(main):002:0> [7.21:15:25] bin> > > > >