Jump to content
NAS

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
#====================================================================================================

 

 

Share this post


Link to post

I have been using mc for ages. It is included with all versions of unraid (for years at least) - and can be invoked simpy by typing "mc" in a shell. Never had to install anything, but i do use it as root.

Share this post


Link to post

mc is native, but it typically runs as root. What are you using/doing to purposefully run mc as the user nobody?

Share this post


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/

 

Share this post


Link to post

Ok. I take the easy way out and just run the chmod command afterwards... :D (plus access to the files over samba is via admin user, so root permissions need not apply)

Share this post


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".

 

Share this post


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.