chmod and chown issues


Recommended Posts

I used ssh (root) to move some files, and file permissions ended up messed up, so when I tried to run an rsync backup script, I had issues.

 

'docker safe new permissions' takes hours to run on my array, and I only needed the permissions of one share changed.

 

'chmod 777 *' didn't work.  Failed with an 'invalid option' error.  But 'chmod 777 1*' and then 'chmod 777 2*' and then 'chmod 777 A*' and then 'chmod 777 B*' etc etc etc worked fine.

 

chown, same exact behavior.  'chown -R nobody:users *' failed with an 'invalid option' error.  'chown -R nobody:users A*' B* C* D* etc etc etc worked fine.

 

What did I do wrong?

Link to comment

No idea what you did wrong :(

 

However I wondered if you realised that the New Permissions script can be run against a just a specified share which I would not expect to take that long (rather than the default of all disks/shares)?  You can do it from the GUI or from the command line by using a command of the form
  newperms /mnt/user/sharename

 

Link to comment

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.