Linux permissions introduced
To set the permissions, we need to know some basic attributes and file permissions distribution rules, in Linux, the ls command is used to view the file attributes, used to display file filename and related attributes,
# # the ls - l path (ls - l is equivalent to the ls - ll)
Ten characters said:
Said 1: document types, common values have a folder "d", "- said file", "l said soft connection", "s for the socket", etc.
2-4: said the document owner permissions, said second read permission, there is r value, -; Third said write permissions, w represents writable, - said not to write, fourth said execute permissions, values have x, -,
5-7: is expressed with the document owner a set of user permissions, fifth said read permission, there is r values, -; Sixth said write permissions, w represents writable, - said not to write, the 7th said execute permissions, values have x, -,
8-10: in addition to the above two parts before the user the rights of other users, eighth said read permission, there is r values, -; Ninth said write permissions, w represents writable, - said not to write, 10th said execute permissions, values have x, -,
Authority distribution, are RWX three parameters combination, and place order will not change, no corresponding privileges, replace with "-", e: execute, executable