I have no clue how I did this, but my user account cannot read the files in
Any ideas what is going on here? What can I do to recover from this? All other directories in my home dir behave normally, just not in the
I remember previously copying some stuff to my ~/.ssh from a backup of my .ssh directory in a different location I executed
~/.ssh
:
Bash:
bedna% id -u
1001
bedna% which ls
/bin/ls
bedna% ls -lna .ssh
ls: .: Permission denied
ls: ..: Permission denied
ls: config: Permission denied
ls: id_ed25519: Permission denied
ls: id_ed25519.pub: Permission denied
ls: known_hosts: Permission denied
total 0
bedna% su root
Password:
# id -u
0
# ls -lna .ssh
total 83
drw------- 2 1001 1001 6 Jan 4 15:28 .
drwxr-xr-x 13 1001 1001 37 Jan 4 15:59 ..
-rw-r--r-- 1 1001 1001 116 Jan 4 15:13 config
-rw------- 1 1001 1001 387 Jan 3 07:03 id_ed25519
-rw-r--r-- 1 1001 1001 82 Jan 3 07:03 id_ed25519.pub
-rw-r--r-- 1 1001 1001 828 Jan 3 07:05 known_hosts
Any ideas what is going on here? What can I do to recover from this? All other directories in my home dir behave normally, just not in the
.ssh
dir.I remember previously copying some stuff to my ~/.ssh from a backup of my .ssh directory in a different location I executed
cp -r ./.ssh/* ~/.ssh
), but by now those copied files I have deleted again (as root, because already then my user accound had no write permission). In my backup location my user account owns those files:
Bash:
bedna% ls -lna .ssh
total 99
drwxr-xr-x 3 1001 1001 5 Jan 4 05:53 .
drwxr-xr-x 5 1001 1001 13 Jan 4 15:17 ..
-rw-r--r-- 1 1001 1001 128 Jan 4 05:53 age_identity.age
-rw-r--r-- 1 1001 1001 116 Jan 4 05:53 config
drwxr-xr-x 2 1001 1001 4 Jan 4 05:53 github_repositories