Use the options --recursive and --change with chown and chmod like this:
sudo chown -Rc $USER:$USER /home/koboldx/
Why you ask?
chmod --help
Usage: chmod [OPTION]... MODE[,MODE]... FILE...
or: chmod [OPTION]... OCTAL-MODE FILE...
or: chmod [OPTION]... --reference=RFILE FILE...
Change the mode of each FILE to MODE.
With --reference, change the mode of each FILE to that of RFILE.
-c, --changes like verbose but report only when a change is made
-f, --silent, --quiet suppress most error messages
-v, --verbose output a diagnostic for every file processed
--no-preserve-root do not treat '/' specially (the default)
--preserve-root fail to operate recursively on '/'
--reference=RFILE use RFILE's mode instead of MODE values
-R, --recursive change files and directories recursively
--help display this help and exit
--version output version information and exit
Each MODE is of the form '[ugoa]*([-+=]([rwxXst]*|[ugo]))+|[-+=][0-7]+'.
GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
Report any translation bugs to <https://translationproject.org/team/>
Full documentation <https://www.gnu.org/software/coreutils/chmod>
or available locally via: info '(coreutils) chmod invocation'
On account of the chmod command, you can also use -R, but this would also make all files executable, and the way youâve constructed the command, it would make everything executable and writable to everyone. Not exactly safe.
I think that simply changing ownership to yourself would suffice. Just because the files and directories were root-owned doesnât yet mean that the permissions were wrong. Changing ownership to yourself should probably restore everything to how itâs supposed to be.
Iâve marked this answer as the solution to your question as it is by far the best answer youâll get.
However, if you disagree with my choice, please feel free to take any other answer as the solution to your question or even remove the solution altogether: You are in control! (If you disagree with my choice, just send me a personal message and explain why I shouldnât have done this or or if you agree)
P.S. In the future, please donât forget to come back to your question after your issue has been solved and click the 3 dots below the answer to mark a solution like this below the answer that helped you most:
so that the next person that has the exact same problem you just had will benefit from your post as well as your question will now be in the âsolvedâ status.
Itâs your home directory: everything should be yours anyway, so: no
Noteborg is the backup program that multiple people have pointed you to by now. Note 2:That was your wake-up call to start making backups. Next time you might not get so lucky!
I just used Timeshift UI and selected backup everything
Hmm if i remember correct, i used copy -Rv command to replace my Homedirectory, maybe that lead to the problem?
Really? And why is that? Atleast my backup replacement finally works now.
Of course its not perfect. But im the only user on my PC/Laptop, is this really a problem for a single?
Security is a valuable asset. manjaro takes great care to ensure security. This includes file permissions. Incorrectly set file permissions undermine this security. But they are not an immediate risk.
However, when a computer has been broken into, incorrectly set file permissions may turn a problem into a disaster.