I am seeing a strange behaviour when using chmod 600 on a .directory which actually breaks my ssh usage.
Here's what I do:
Code: Select all
mirabilit@minty ~/test $ mkdir .testdir
mirabilit@minty ~/test $ ll
insgesamt 12
drwxrwxr-x 3 mirabilit mirabilit 4096 Aug 2 18:41 ./
drwxr-xr-x 45 mirabilit mirabilit 4096 Aug 2 17:54 ../
drwxrwxr-x 2 mirabilit mirabilit 4096 Aug 2 18:41 .testdir/
mirabilit@minty ~/test $ ll .testdir/
insgesamt 8
drwxrwxr-x 2 mirabilit mirabilit 4096 Aug 2 18:41 ./
drwxrwxr-x 3 mirabilit mirabilit 4096 Aug 2 18:41 ../
mirabilit@minty ~/test $ touch .testdir/testfile
mirabilit@minty ~/test $ ll .testdir/
insgesamt 8
drwxrwxr-x 2 mirabilit mirabilit 4096 Aug 2 18:41 ./
drwxrwxr-x 3 mirabilit mirabilit 4096 Aug 2 18:41 ../
-rw-rw-r-- 1 mirabilit mirabilit 0 Aug 2 18:41 testfile
mirabilit@minty ~/test $ chmod 600 .
./ ../ .testdir/
mirabilit@minty ~/test $ chmod 600 .testdir/testfile
mirabilit@minty ~/test $ ll .testdir/
insgesamt 8
drwxrwxr-x 2 mirabilit mirabilit 4096 Aug 2 18:41 ./
drwxrwxr-x 3 mirabilit mirabilit 4096 Aug 2 18:41 ../
-rw------- 1 mirabilit mirabilit 0 Aug 2 18:41 testfile
mirabilit@minty ~/test $ chmod 600 .testdir/
mirabilit@minty ~/test $ ll .testdir/
ls: Zugriff auf '.testdir/testfile' nicht möglich: Keine Berechtigung
ls: Zugriff auf '.testdir/..' nicht möglich: Keine Berechtigung
ls: Zugriff auf '.testdir/.' nicht möglich: Keine Berechtigung
insgesamt 0
d????????? ? ? ? ? ? ./
d????????? ? ? ? ? ? ../
-????????? ? ? ? ? ? testfile
mirabilit@minty ~/test $ whoami
mirabilit
insgesamt 8
drw------- 2 mirabilit mirabilit 4096 Aug 2 18:41 .
drwxrwxr-x 3 mirabilit mirabilit 4096 Aug 2 18:41 ..
-rw------- 1 mirabilit mirabilit 0 Aug 2 18:41 testfile
I am running Linux Mint 19 in a VM and I think it only appears to be like that after the upgrade from Mint 18.
Any idea what's happening here? Why does it look ok with a sudo?
Thanks in advance,
Mirabilit