tucansam Posted April 14, 2019 Share Posted April 14, 2019 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? Quote Link to comment
remotevisitor Posted April 14, 2019 Share Posted April 14, 2019 Do you have a file/directory that starts with a "-", in which case the "*" will be expanding to something that looks like a command option. ? maybe ‘chmod -- 777 *’ might work in that case. Quote Link to comment
itimpi Posted April 14, 2019 Share Posted April 14, 2019 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 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.