mc fix for nobody user


6 posts in this topic Last Reply

Recommended Posts

I am in the process of cleaning up years of unRAID tweaks.

 

The way unRAID ships when you install mc and run it as "nobody" you have problems.

 

This fixes it for me and some variation could probably fix it for everyone. I dont remember if mc is shipped native, if not it should be.

 

#====================================================================================================
#Fix mc running as nobody
#====================================================================================================
/usr/bin/mkdir -p /.cache/mc
/usr/bin/mkdir -p /.local/share/mc
/usr/bin/mkdir -p /.config/mc
#====================================================================================================

 

 

Link to post

yes, if you are working with array files you should run mc as the typical array file owner nobody and not root.

 

If you try to do this mc will complain without above fix.

 

As a example of my usage for content only

 

sudo -u nobody mc /mnt/user/downloads/ /mnt/user/movies/

 

Link to post

To be fair so did I for many years but I realised the 90% of my "mc" sessions were between 2 or 3 base locations so once I figured out the solution above I just setup a few aliases and now its second nature to type "unmcm" for "unRAID Midnight Commander Movies".

 

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.