https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17097754782013-06-16T14:08:10ZRuby Issue Tracking SystemRuby master - Bug #8532: tool/runruby.rb:70: warning: Insecure world writable dir /usr/local in PATH, mode 040777https://bugs.ruby-lang.org/issues/8532?journal_id=399652013-06-16T14:08:10Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul></ul><p>No log attached.<br>
What does `ls -dl /usr/local' show?</p> Ruby master - Bug #8532: tool/runruby.rb:70: warning: Insecure world writable dir /usr/local in PATH, mode 040777https://bugs.ruby-lang.org/issues/8532?journal_id=399662013-06-16T14:42:33Zzzak (zzak _)
<ul><li><strong>File</strong> <a href="/attachments/3750">build.log.tar.gz</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3750/build.log.tar.gz">build.log.tar.gz</a> added</li></ul><p>drwxrwxrwx 21 root admin 714 Jun 14 00:00 /usr/local</p>
<p>re: attachment, try now!</p> Ruby master - Bug #8532: tool/runruby.rb:70: warning: Insecure world writable dir /usr/local in PATH, mode 040777https://bugs.ruby-lang.org/issues/8532?journal_id=399672013-06-16T14:52:27Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li></ul><p>Then it's an intended warning.</p>
<p>It's considered dangerous to include a world-writable directory or its descendent directory in PATH.<br>
Why is the system-wide directory world-writable?</p> Ruby master - Bug #8532: tool/runruby.rb:70: warning: Insecure world writable dir /usr/local in PATH, mode 040777https://bugs.ruby-lang.org/issues/8532?journal_id=399682013-06-16T14:56:34Zzzak (zzak _)
<ul></ul><p>i have no idea, what should it be?</p> Ruby master - Bug #8532: tool/runruby.rb:70: warning: Insecure world writable dir /usr/local in PATH, mode 040777https://bugs.ruby-lang.org/issues/8532?journal_id=399692013-06-16T15:02:21Zzzak (zzak _)
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li></ul><p>this was my fault (probably), thanks nobu for checking!</p> Ruby master - Bug #8532: tool/runruby.rb:70: warning: Insecure world writable dir /usr/local in PATH, mode 040777https://bugs.ruby-lang.org/issues/8532?journal_id=399702013-06-16T15:17:26Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul></ul><p>Remove write-bits:<br>
sudo chmod go-w /usr/local<br>
or make it sticky:<br>
sudo chmod +t /usr/local</p>