Friday 27 January 2012

unix permission directory explanation

directory (other)

x --> other can cd to it and traverse to sub dir under it (as long sub dir under it has the permission for it). can not do alter nor list file BUT can ls and ls -al to specific file and get the detail of it.


w --> other can not do anything, neither ls, touch, re, nor cd

r --> other can ls only (and autocomplete TAB works too), but will show only filename without any permission, date, ownership.


rwx --> you can do many things to folder/file under it

wx --> can cd and can alter file/folder under it, can also ls -al specific file and get the detail of a file, but can not get the whole list of file/folders under it.


rx --> can cd and can list the whole list of file INCLUDING the detail of the file. Can not alter file/folder including owned by him.


rw --> list the whole list WITHOUT the file detail. Can not do alter also (same like r only???)

No comments:

Post a Comment