midnight commander error: Unable to create directory


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.


How useful was this post?

Click on a star to rate it!

Average rating 4 / 5. Vote count: 2

No votes so far! Be the first to rate this post.

Scroll to Top