Broke /home Folder via chmod - need acess again

Hello,
i am a (semi) beginner in Endavour OS and Linux and i broke the permissions on my /home folder. So i need ur help, that i can acess und work with this folder. I think i changed via chmod also the u and g attributes.
This is what ls -la say:

Blockquote
drwxrwxrwx 39 paul users 4096 21. Feb 11:15 .
drwxr-xr-x 3 root root 4096 29. Dez 2021 …
d-w------- 3 paul users 4096 2. Jan 2022 .anaconda
d-w------- 28 paul users 4096 22. Jan 2022 anaconda3
d-w------- 2 paul users 4096 6. Jan 2022 Arbeit
d-w------- 9 paul users 4096 17. Feb 2022 .atom
d-w------- 2 paul users 4096 29. Dez 2021 Bilder
d-w------- 23 paul users 4096 21. Feb 11:14 .cache
d-w------- 2 paul users 4096 27. Jan 2022 Datasets
d-w------- 2 paul users 4096 3. Feb 2022 Datenbanken
d-w------- 8 paul users 4096 21. Feb 11:07 Dokumente
d-w------- 2 paul users 4096 14. Feb 20:27 Downloads
d-w------- 2 paul users 4096 13. Jan 2022 ‘JS Test’
d-w------- 4 paul users 4096 29. Dez 2021 .mozilla
d-w------- 2 paul users 4096 29. Dez 2021 Musik
d-w------- 2 paul users 4096 29. Dez 2021 Öffentlich
d-w------- 3 paul users 4096 29. Dez 2021 .pki
d-w------- 4 paul users 4096 26. Apr 2022 ‘Py Test’
d-w------- 3 paul users 4096 14. Feb 19:34 Schreibtisch
d-w------- 2 paul users 4096 29. Dez 2021 Videos
d-w------- 2 paul users 4096 29. Dez 2021 Vorlagen
[…]

Hope u can help me to fix the problem…Thanks for advice!

may be this can help you ?
https://www.shellbefehle.de/befehle/chmod/

First, welcome to the forum!

If your home directory is at /home/paul you could use the command:

sudo chmod -R ug+rwX /home/paul

Be cautious to get everything correct including the case on X and the directory or name. A typo in that command would be bad.

2 Likes

@dalto would you be so kind to explain why the x is written in big letter ?
x means “right to execute” ? (r=read, w=write)
thanks in advance

The uppercase X means to only set the executable bit if it is a directory or already has the executable bit set.

If you used a small x in that scenario, it would make all the files executable which would be bad. If you omit it, then you would not be able to traverse the directories.

2 Likes

ok :+1: