Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

user script: change directory owner sets directory owner to "unknown" instead of specified owner

Featured Replies

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:

image.png.9c49356bdf4d5471b1519c1dee927687.png

 

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 by chrismuc

Solved by szaimen

Hi, 

 

I think the chown command is wrong. It should be `chown -R 33:0 /mnt/user/slownas` afaik.

 

Cheers!

  • 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!

  • Solution

Yes, in the screenshot are you using `30:0` instead of `33:0`. Do you see the difference?

  • Author

Oops. Now I'm really embarrassed.

Thank you again!

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.