Posts tagged with “chmod

Searching for world-writable files and directories from the command-line

World-writable permissions are the equivalent of an unlocked door. They require trust and nothing online should bear the weight of that expectation. Why are they so bad? World-writable permissions are also commonly referred to by their binary equivalent of “777”, for which the digits represents the permission level for each of the three possible users: […]

Changing permissions with chmod

Here’s the syntax for CHanging permissions or MODe — also known as chmod — for files and directories: chmod [permissions] /path/to/file/or/directory The three possible users are: file owner group of authorized users everyone else (a.k.a. “the world”) The possible actions (and associated binary values) are: 4: read 2: write 1: execute Total the values for […]