Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
15
rated 0 times [  15] [ 0]  / answers: 1 / hits: 79033  / 2 Years ago, fri, august 5, 2022, 9:06:02

Somehow, I managed to chmod and chown my ~ into oblivion.



When I attempt to login through the shell, I get



bash: ~/.bashrc : Permission denied


Even after (as root) I've run



chown -hR nroach44 /home/nroach44


and



chmod -R 666 /home/nroach44


or (as nroach44)



chmod -R 644 /home/nroach44


None of these commands return errors.



Also:



ls -la /home/nroach44


Returns lots of



drw-rw-rw-  1 nroach44 nroach44 4096 --date-- ti:me foldername


Any Help?


More From » permissions

 Answers
0
chmod -R 666 /home/nroach44


or



chmod -R 644 /home/nroach44


This will make all the files on your home dir non executable. It was not a good idea ;)



I don't know how to clean this mess, as a quick workaround you can try to do as root:



chmod -R 755 /home/nroach44


This command will give execute permissions to all files on your home folder. It should solve your immediate problems, but it could be a security nightmare.



The best solution is to open another user account and transfer to it files and settings one by one.


[#41031] Sunday, August 7, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
donurp

Total Points: 328
Total Questions: 128
Total Answers: 123

Location: Faroe Islands
Member since Thu, Apr 8, 2021
3 Years ago
donurp questions
;