Linux – difference between chmod 777 and chmod 007

chmodlinuxpermissionsSecurity

What is the difference between chmod 777 and chmod 007? if 'others' means everyone, doesn't that strongly suggest the truth that chmod 777 = chmod 007?

Best Answer

It may suggest that, but it isn't the case.

The first digit is "owner" permissions, the second is "group" permissions - and the owner and group are viewable with ls -l, and the third is "others", which literally means those that aren't either the owner or in the group.

So 007 means that neither the owner or group members can read, write, or execute the file, while everyone else can do all three.

Related Question