Need help for chmod permission (-x 0755)

Hi!

What is the permission attribute of a folder or file
for "Read and Write - Access - Access - No Execute (-)" ?

When I done it with chmod 0755 /file or /path

Result with +x :-(, don't want it execute.

So, I don't want that:
Read and Write - Access - Access - Execute (+)

When I use

chmod 0644 ,I got "list, create/delete, no access, - No Execute"

I read about this:

7 – for read, write, and execute permission
6 – for read and write privileges
5 – for read and execute privileges
4 – for read privileges

When i done "chmod 0655 /file" then I got the result:
"Read and write - Read only - Read only - No Execute"
(This is what I want)

when I done "chmod 0655 /path then I got the
result:
List, create/delete, No Access - No Execute
(This is what I don't want)

The "List, create/delete, No Access" is wrong.

I need for folder permissions: Create and delete files - Access - Access - No Execute (-x) permission.

Please help! Thanks!

I hope this helps a bit (anyone correct me if I am wrong):

  • "execute" on a directory means you can change into that directory, on a file regular it means "execute the file"
  • "read" on a directory means you can read files inside (assuming the files themselves are readable), on a file it obviously means being able to read the file, the "write" permission is analogous

Ok, got it now:

Example:

sudo chmod 0644 /var/log/dmesg

= Read and Write, Read only, Read only, Execute permission is unchecked

sudo chmod 0755 /folder

= Create and delete files, Access files, Access files, -x on Execute permission

S O L V E D :slight_smile: