Using chmod
I could set the permissions for a file, but if the parent ( ..
) directory had conflicting permissions, what would happen?
And if I create a new file, using touch
or something similiar, how are the initial permissions calculated? Are permissions inherited it from ..
?
And why can't I do anything in directory when I removed the executable
permission flag?
$ mkdir temp;
$ chmod -x temp;
$ touch temp/a;
$ ls temp;
touch: cannot touch `temp/a': Permission denied