Friday, May 23, 2014

Improve Users Directory File Permissions

You may notice the following warning when opening a Rails 4 console:

... ruby/gems/2.1.0/gems/bundler-1.6.2/lib/bundler/runtime.rb:222: warning: Insecure world writable dir /Users in PATH, mode 040777


That indicates that the /Users directory has an insecure file permission setting. Solution Tighten up security on the /Users directory like this:

$ sudo chmod 040755 /Users


The "040" is the file type flag representing a directory.

Here's what the permissions should look like:


$ ls -l / | grep Users
drwxr-xr-x@    6 root  admin      204 Apr 10 15:25 Users


No comments:

Post a Comment