I noticed once the following error when starting MC (Midnight Commander):
Unable to create directory “/home/user/.local/share/mc”
The reason for the error is most likely that as soon as the MC was installed, it was immediately launched through sudo and in the user folder, the directories /.cache/, /.local/, and /.config/ were created from the root user, accordingly, other users will not get access to them, including the user himself.
To solve this problem, specify the correct owner and group in these directories:
sudo chown -Rf user:user /home/user/.cache/ sudo chown -Rf user:user /home/user/.local/ sudo chown -Rf user:user /home/user/.config/
Now Midnight Commander should start.
Similar Posts:
- how to Find Linux Files by Name or Extension via command line
- How to reload sysctl.conf variables on Linux
- how to delete a lot of files in linux
2,595