Bug #8532

tool/runruby.rb:70: warning: Insecure world writable dir /usr/local in PATH, mode 040777

Added by Zachary Scott 10 months ago. Updated 10 months ago.

[ruby-core:55503]
Status:Closed
Priority:Normal
Assignee:Nobuyoshi Nakada
Category:build
Target version:2.1.0
ruby -v:r41328 Backport:1.9.3: UNKNOWN, 2.0.0: UNKNOWN

Description

i've attached the full log

build.log.tar.gz (10.4 KB) Zachary Scott, 06/16/2013 02:42 PM

History

#1 Updated by Nobuyoshi Nakada 10 months ago

No log attached.
What does `ls -dl /usr/local' show?

#2 Updated by Zachary Scott 10 months ago

drwxrwxrwx 21 root admin 714 Jun 14 00:00 /usr/local

re: attachment, try now!

#3 Updated by Nobuyoshi Nakada 10 months ago

  • Status changed from Open to Feedback

Then it's an intended warning.

It's considered dangerous to include a world-writable directory or its descendent directory in PATH.
Why is the system-wide directory world-writable?

#4 Updated by Zachary Scott 10 months ago

i have no idea, what should it be?

#5 Updated by Zachary Scott 10 months ago

  • Status changed from Feedback to Closed

this was my fault (probably), thanks nobu for checking!

#6 Updated by Nobuyoshi Nakada 10 months ago

Remove write-bits:
sudo chmod go-w /usr/local
or make it sticky:
sudo chmod +t /usr/local

Also available in: Atom PDF