yarivot26 Posted February 13, 2014 Share Posted February 13, 2014 Hi, I'm trying to move files from one share to another and I an error "File Access Denied" saying I need nobody permission to make changes to files. I moved the files from external hdd using the midnight command. I tried running the fix permission utility with no luck. Do I need to set the permission manually every time I mount a USB drive? I'm using unRAID 5.0.4 Thanks Quote Link to comment
BobPhoenix Posted February 13, 2014 Share Posted February 13, 2014 If you didn't use the following command to load Midnight Commander you might try it this way next time before you use MC to move/copy files from your USB drive. sudo -u nobody mc Quote Link to comment
yarivot26 Posted February 14, 2014 Author Share Posted February 14, 2014 Thanks I'll remember that for next time. How do I fix it now? Quote Link to comment
joshpond Posted February 14, 2014 Share Posted February 14, 2014 You have to chmod the files and then chown the file. I can't remember the exact command for chown as I need to see what the user is set as and I'm not near my pc. Sent by tapatalk Quote Link to comment
yarivot26 Posted February 14, 2014 Author Share Posted February 14, 2014 Thanks Can someone please give me the exact commands I should use? Quote Link to comment
joshpond Posted February 14, 2014 Share Posted February 14, 2014 Okay at a pc now: Use chown to change the users to nobody chown nobody:users file.name Add -R if it is a directory and you want it to apply to all files chown -R nobody:users directory See how that goes. If you also need to mod permissions: chmod XXX file.name XXX is the octal that you need. 777 will work for everything but you probably don't need quite that much. Read this, it will explain it pretty well. http://www.linux.org/threads/file-permissions-chmod.4094/ -R after chomd for recursive to apply to all files. Josh Quote Link to comment
chlballi Posted June 19, 2022 Share Posted June 19, 2022 Just jumping in to this OLD thread to say thanks. Changing the owner to my main account allowed me to finally edit the conf file and add my domain from NPM. Cheers! Quote Link to comment
Recommended Posts
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.