Like the title says. I'm on OMV 3 and when I add HideNoAccess on to the advanced options I can't apply without an error. Is this not supported? I have a root folder shared that contains Users home folders. I share the Users folder as an FTP share. Permissions are OK, I can only read/write to the correct folders. I would just like for the listing of the Users directory to only return folders that the user has permissions. This from what i read is what HideNoAccess does.
HideNoAccess creates error on Apply
-
- OMV 3.x
- gelöst
- jmccusker
-
-
Can you post a screenshot on how did you apply the directive?
-
-
I figured out it should be
<Directory /Users>
HideNoAccess on
</Directory>I'm guessing this is failing because the conf generator is trying to create this before the directory exists in or because it duplicates the auto-gen <Directory /Users> section.
-
I think you need to apply this per share not in general extra options. Also you need to indent it, as there is probably a very old bug there in those share extra options that doesn’t indent the properly inside <directory>
-
Yep. it was indented. I didn't even realize i could apply in the shares window. I simply put HideNoAccess on in the shares options and it works. It's still not quite what I was hoping to accomplish though. The users home folders are still showing. Would there be a way to apply this to the root?
-
well you can change the default vroot to ~ with env variable. Then home folders will work without even sharing the whole home root folder. There is a very old thread in the forum that describes how to do it. Can’t find it know.
-
I saw that and will be honest that I'm not that bright with linux and env variables(yet). I'm the guy that should be using a synology but I enjoy learning new things too much. If I run a set command will that take care of it?
-
well you can change the default vroot to ~ with env variable. Then home folders will work without even sharing the whole home root folder. There is a very old thread in the forum that describes how to do it. Can’t find it know.
I added OMV_PROFTPD_DEFAULTROOT="~" to the file /etc/default/openmediavault. Is that correct? It errors out when making the new conf. Sorry for my idiocy.
-
Mayeb you still have extra directives there? Try clearing them up.
-
Had to have HideNoAccess on in extras window of the share not FTP setting. Working now.
Thanks for your help and time!
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!