sudo midnight commander
- by mit
I sometimes start midnight commander as superuser with the command sudo mc to do some operations on the current working directory as superuser.
But this results in ~/.mc having the wrong permissions, which I need to fix manually.
Any solution?
Edit:
I accepted an answer. I want to further add, that .mc is a directory, so my solution goes like this:
$ cd ~
~$ sudo chown -R mit.mit .mc
~$ chmod 775 .mc
~$ cd .mc
~$ chmod -R 664 .mc
~/.mc$ chmod 775 cedit
It seems not to be a good idea after installing mc to use sudo on its first start .