You are not logged in.
Why do directories need to have rwx for my user (the owner of the dir) to be able to enter them? The example below is 755 and I can enter it no problem:
$ mkdir test
$ls -l
total 706544
drwxr-xr-x 2 user user 4096 Feb 14 05:51 test
If I remove the executable flag from the dir then try to enter it, I get a permission denied which I don't understand since I'm not attempting to execute anything by changing directories into it.. am I?
$ chmod 644 test
$ls -l
total 706544
drw-r--r-- 2 user user 4096 Feb 14 05:51 test
$ cd test
-bash: cd: test: Permission denied
Last edited by graysky (2010-02-14 11:05:40)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
That is the way of the world... executable permissions on directories allow you to enter it, read permissions allow you to list the files in there.
Offline
Thanks for the rapid response. I suspected as much but wanted to be sure. Guess I can just enter the dir then chmod 644 * to keep the files the way I want them.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Your folders should by default have 755 permissions and files created with 644 permissions. There should be no need to chmod.
Offline
@Allan - what file dictates this behavior?
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
> grep umask /etc/profile
#Set our umask
umask 022
Offline
Thanks again
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline