Linux, what is X?

If I installed 751 in the directory, resolution: drwxr-x--x

x, what does that mean? If I set this permission, any user could access this directory, but ONLY the owner and group could read the contents?

Let me know, thanks.

+7
source share
4 answers

The permission "x" set for the directory allows you to cross its tree to access files or subdirectories, but not see the contents of the files inside the directory (if the value "r" is not specified), (*)

So, in your example, the owner, group and others can do something, the group can cd to the directory and ls (read the list of files inside), others can just cd to the directory to access subdirectories, but this is a completely useless permission without "reading".

(*) See http://en.wikipedia.org/wiki/Filesystem_permissions#Permissions

+9
source

x means you can cd into a directory. R means you can ls directory.

+8
source

This means β€œexecute” permission. For the catalog, this has a more interesting meaning. Performing permission in a directory means that you can list the files in this directory. See here . From the link I posted:

Remember that to read the file you need to access the directory in which it is located and read the access to the file itself. To write a file, you need to access the directory and write access to the file.

+2
source

x means "executable file".

in your example, the owner can read the entry in the directory, users of the group can only read, but everyone can go inside.

+2
source

All Articles