Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>If you tried <code>sudo chmod go-w /usr/local/bin</code> from the other answer, try:</p> <pre><code>chmod go-w /home/chance </code></pre> <p>instead.</p> <p>What seems to have happened is that somehow your home directory (<code>/home/chance</code>) has been added to your <code>$PATH</code> (the list of directories the OS searches when trying to find an executable to launch) and has also had its permissions changed so that anyone can write to it. This is potential a security problem, as another user could put an executable into this directory which you could accidentally launch. Ruby notices this and issues the warning. </p> <p>This command changes the permissions of the directory so that it is no longer world writable.</p> <p>In unix, file permissions are specified for three categories, the file owner (user), the group of the file (group), and everyone else (other). (See Google for more on unix file permissions).</p> <p>So breaking down the command above:</p> <p><code>chmod</code> - change the 'mode' of the file (i.e. its permissions)</p> <p><code>go</code> - for group(g) and others(o)</p> <p><code>-w</code> - (minus w) remove write permission</p> <p><code>/home/chance</code> - the file (or directory) in question</p> <p>In the other answer the directory that was causing the problem was <code>/usr/local/bin</code>, which is owned by root so <code>sudo</code> is required to change permissions on it. <code>/home/chance</code> is your home directory which is owned by the <code>chance</code> user who can change permissions on it - no <code>sudo</code> required.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload