Why does sudo mkdir -m766 0/subdir deny?
I can't understand why mkdir doesn't permit subdir entrance
d@wg:~$ sudo mkdir -m766 0
Password:
Sorry, try again.
Password:
d@wg:~$ ls -ls
total 16
4 drwxrw-rw- 2 root root 4096 2004-11-08 04:24 0
4 drwxr-xr-x 3 d d 4096 2004-11-05 08:09 56
4 drwxr-xr-x 3 d d 4096 2004-11-07 22:39 8
4 drwx------ 3 d d 4096 2004-11-05 08:43 Desktop
d@wg:~$ sudo mkdir -m766 0/churchState
d@wg:~$ ls -ls 0
ls: 0/churchState: Permission denied
total 0
d@wg:~$ sudo ls -ls 0
total 4
4 drwxrw-rw- 2 root root 4096 2004-11-08 04:25 churchState
d@wg:~$ sudo mkdir -m777 0/churchStateSep
d@wg:~$ ls -ls 0
ls: 0/churchState: Permission denied
ls: 0/churchStateSep: Permission denied
total 0
d@wg:~$ sudo ls -ls 0
total 8
4 drwxrw-rw- 2 root root 4096 2004-11-08 04:25 churchState
4 drwxrwxrwx 2 root root 4096 2004-11-08 04:28 churchStateSep
d@wg:~$
d@wg:~$ cd 0
bash: cd: 0: Permission denied
d@wg:~$ sudo cd 0
sudo: cd: command not found
d@wg:~$
|