If an owner can read and write and the group can read and execute, can the owner execute the file? Do file permissions stack?


Let's try:

$ touch test.sh
$ chmod 650 test.sh
$ ls -lh
-rw-r-x---  1 lorenzob lorenzob    0 Sep 10 00:01 test.sh
$ ./test.sh
bash: ./test.sh: Permission denied

It seems that he can not!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.