I created several shared folders, and users which were created using an LVM logical volume. I also setup some of those users under the file manager plugin.
I deleted all of the users in the web UI, and all of the folders under the /srv/dev-disk-by-uuid-* associated with that LVM logical volume using the CLI since the trash can icon wasn't active for one of them (which is why I deleted everything I could to remove that reference, but to no avail).
That shared folder is still showing up in the web UI under Storage--> Shared folders and I can't seem to get rid of it to start over.
Having difficulty removing shared folders
-
-
Does the folder show up in Services > SMB/CIFS > Shares? If so remove it there and try again to delete it from Storage > Shared Folders.
-
I found it. It wasn't obvious and I don't even recall where the reference was. I am still trying to figure the way storage works under OMV.
No problem with multiple disksNo problem with LVM elements (physical volumes, volume groups & logical volumes)
Not clear on user home folder. I have a logical volume named RAID_storage. I created a symlink to that called raid_space. I used raid_space as my "home" folder for users. In the file manager plugin I erased the /users default and made it just /, hoping users created under OMV's User web interface would be accessible and share the same home folder. That appeared to work, but it didn't. A /users folder was created anyway: /srv/raid_space/raid_space/users. The OMV web UI Users created the user under /srv/raid_space/<username>.
Not clear on shared folders in general and how users can access them. I would hope that a user given the proper access permissions would be able to view any files in any shared folder that user is granted access too.
Although I granted user X read/write access to all shared folders (which are siblings user home folders), I can't see them in the file manager web interface. Perhaps that's by design but it's rather limiting if so. I was hoping a user could browse any files, under his own home folder or any other shared folder he is given access to.---
I'm just very confused about the correct sequence required to define users home folders, shared folders and then how to provide access to them from the file manager plugin. Once referenced, it's not easy to find those references to remove a shared folder.
The Music and Videos shared folders are directly under the LVM Logical Volume, which is what I wanted. "raid_space" is just an alias for the LVM LV. The users created with the Web UI should be under that symlink, but instead they're created under a different folder with the same name as the symlink:Code
Display More$ ls -ls /srv total 12 4 drwxr-xr-x 6 root root 4096 Aug 31 13:20 dev-disk-by-uuid-b71a0164-48d6-41ec-9015-583e339377b7 4 drwxr-xr-x 3 root root 4096 Aug 27 10:46 pillar 0 lrwxrwxrwx 1 root root 54 Aug 31 11:38 raid_space -> dev-disk-by-uuid-b71a0164-48d6-41ec-9015-583e339377b7/ 4 drwxr-xr-x 7 root root 4096 Aug 27 10:46 salt $ ls -ls /srv/raid_space/ total 80 16 drwx------ 2 root root 16384 Aug 29 16:58 lost+found 56 drwxrwsr-x+ 838 root users 53248 Aug 31 16:04 Music 4 drwxrwsr-x+ 5 root users 4096 Aug 31 15:31 raid_space 4 drwxrwsr-x+ 15 root users 4096 Aug 31 15:17 Videos $ ls -ls /srv/raid_space/raid_space/ total 12 4 drwxr-xr-x 2 mark users 4096 Aug 31 15:09 mark 4 drwxr-xr-x+ 2 thomas users 4096 Aug 31 15:31 thomas 4 drwxr-sr-x 3 filebrowser users 4096 Aug 31 12:26 users
-
-
After many go-rounds and removal of references (had to set None in options for file manager and users) I was finally able to get the web interface file manager to show the contents of their folders.
However no shared folders can be seen when logging in via the file manager, despite them have proper permissions. It seems the file manager isn't designed to allow access outside of a user's home folder. The Share Management tab has no contents and no apparent way to add contents there, it just has an image that says "It feels lonely here...".
There appears to be some kind of permissions problem. I can't create any folders in the file manager web interface and when I try to delete one created on the CLI I get a forbidden msg.
Here is my current config:Code
Display More$ ls -ls /srv total 12 4 drwxr-xr-x 6 root root 4096 Aug 31 18:13 dev-disk-by-uuid-b71a0164-48d6-41ec-9015-583e339377b7 4 drwxr-xr-x 3 root root 4096 Aug 27 10:46 pillar 4 drwxr-xr-x 7 root root 4096 Aug 27 10:46 salt $ ls -ls /srv/dev-disk-by-uuid-b71a0164-48d6-41ec-9015-583e339377b7/ total 108 16 drwx------ 2 root root 16384 Aug 29 16:58 lost+found 84 drwxrwsr-x+ 1413 root users 81920 Aug 31 17:06 Music 4 drwxrwsr-x 4 root users 4096 Aug 31 18:27 Users 4 drwxrwsr-x+ 43 root users 4096 Aug 31 17:28 Videos $ ls -ls /srv/dev-disk-by-uuid-b71a0164-48d6-41ec-9015-583e339377b7/Users/ total 8 4 drwxr-xr-x 2 mark users 4096 Aug 31 18:35 mark 4 drwxr-xr-x 2 thomas users 4096 Aug 31 18:27 thomas
-
I decided to simplify things & skip the shared folder approach. From the posts I read and my own experience it doesn't look like the web interface supports shared folders, or at least not very well / intuitively.
The use case for this NAS is mainly as a backup for a single user, so just using rsync to copy their home folder to the NAS and they can use the file manager web interface to obtain a copy of any file(s), or rsync in reverse to restore entire home folder on a crash to restore.
Only thing necessary to resolve now is why smtp doesn't seem to work. I created a separate thread for that issue.
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!