sudo midnight commander

Posted by mit on Super User See other posts from Super User or by mit
Published on 2010-12-30T19:14:20Z Indexed on 2010/12/30 21:56 UTC
Read the original article Hit count: 427

Filed under:
|
|
|
|

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 .

© Super User or respective owner

Related posts about linux

Related posts about ubuntu