December 12, 20223 yr Hello everyone, I've created my first user script: to make Nextcloud AIO recognize files added manually via a file manager, the owner of the new files needs to be changed to "sshd:root". Originally, when adding new files, the owner will be "nobody". This is my user script: My problem is that running the script sets the owner to "unknown" instead of "sshd". But when using the same command from command line, it works perfectly and recursively sets the owner to "sshd". What am I doing wrong? Cheers for any feedback! Edited December 12, 20223 yr by chrismuc
December 13, 20223 yr Hi, I think the chown command is wrong. It should be `chown -R 33:0 /mnt/user/slownas` afaik. Cheers!
December 13, 20223 yr Author Hello @szaimen, I appreciate your feedback, and all the other's I've read from you in the Nextcloud forum which helped me a lot! Especially the one with the russian page describing how to change permissions so Nextcloud AIO initial setup won't fail was a game changer... But the chown command you're suggesting seems to be 100% identical with what I have written in my user script. Am I missing something? Cheers again!
December 13, 20223 yr Solution Yes, in the screenshot are you using `30:0` instead of `33:0`. Do you see the difference?
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.