View Full Version : File permission 600 vs 700?
May 4th, 2008, 01:07 AM
I am just curious what the difference is between a 777 and 666 for example. Is it that 777 are for executable files and 666 is for text files?
May 4th, 2008, 01:18 AM
octal permissions work like this:
if you want read permission you add 4. so a permission of 444 allows the files to be read only.
if you want write permission you add 2. so a permission of 666 allows the files to be read and written.
if you want execute permission you add 1. so a permission of 777 allows the files to be read and written as well as executed.
why there are three permission?
the first number indicate the premission granted for the owner of the file.
the second number indicate the premission granted for the users blonging to the group of the file.
the third number indicate the premissions granted for the rest of the users.
May 4th, 2008, 01:49 AM
Owner - Group - Other
rwx - rwx - rwx (700)
rw - rw - rw (666)
rwx - - (700)
rwx - r x - r x (755)
R = Read
W = Write
X = eXecute
May 4th, 2008, 06:33 AM
This should explain it quite well: http://dmiessler.com/study/unixlinux_permissions/
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.