April 12, 20224 yr I'am also new here but have the same issue as described: shares in the WebGUI are gone after reboot but they are on the disk (formatted with btrfs): Quote root@UnraidTower:~# ls -lah /mnt/user total 16K drw-rw---- 1 administrator domänen-benutzer 62 Apr 12 09:43 ./ drwxr-xr-x 7 root root 140 Apr 11 21:49 ../ drwxrwxrwx 1 administrator domänen-benutzer 22 Apr 11 22:57 Disk_Restore/ drwxrwxrwx 1 administrator domänen-benutzer 86 Apr 10 19:18 VMfreebsd/ drwxrwxrwx 1 administrator domänen-benutzer 0 Apr 8 14:06 appdata/ drwxrwxrwx 1 administrator domänen-benutzer 14 Apr 10 12:15 domains/ drwxrwxrwx 1 administrator domänen-benutzer 68 Apr 10 19:18 isos/ drwxrwxrwx 1 administrator domänen-benutzer 26 Apr 8 14:06 system/ If a new share is created via WebGUI a new directory is created on the disk. But in the WebGUI the confirmation message appears "Share 'xxx has been deleted.'" 😞 The samba-share.conf contain only the (default) entry for the flash: Quote root@UnraidTower:~# cat /etc/samba/smb-shares.conf [flash] path = /boot comment = Unraid OS boot device browseable = yes # Public public = yes writeable = yes vfs objects = catia fruit streams_xattr case sensitive = auto preserve case = yes short preserve case = yes map archive = no map system = no map hidden = no map readonly = yes force user = root When adding the (physical) existing dir "Disk_Restore" manually to the .conf file + restart samba --> both shares can be accessed from Win11 as well as MacOS's. But after trying again to create a new share via the webGUI the manually added share is deleted in the .conf file. So the WebGUI can access and modify the .conf file. Several reboots does't help to fix that problem. Attached the diagnostic log. Hope it helps. Little bit funny: every access of WebGUI "Shares" resulted in an entry in /var/log/samba/log.nmbd: Quote Samba name server UNRAIDTOWER is now a local master browser for workgroup XXXXXX on subnet 172.17.0.1 The subnet 172.xxx.... doesn't exists (only 192.xxx.. which has been assigned via DHCP to the "UNRAID" nics) By the way: where to find the defintion of the NFS shares - they are also gone/not availible and the log is empty ? -------- All dirs stored in a pool of 2x 18 TB hdd + 2x 18 TB parity (=array of 4 devices + 2x 1 TB SSD caches). Samba is joined to our domain without any issues. No extra config parameters were set. In 'Global Share Settings' is 'enabled disk shares = Auto' and 'Included disk = All' What else can I check ? unraidtower-diagnostics-20220412-1327.zip Edited April 12, 20224 yr by Goulasch
April 12, 20224 yr Community Expert I have split your post into its own thread so that other user can have his thread. 7 hours ago, Goulasch said: Quote root@UnraidTower:~# ls -lah /mnt/user total 16K drw-rw---- 1 administrator domänen-benutzer 62 Apr 12 09:43 ./ drwxr-xr-x 7 root root 140 Apr 11 21:49 ../ drwxrwxrwx 1 administrator domänen-benutzer 22 Apr 11 22:57 Disk_Restore/ drwxrwxrwx 1 administrator domänen-benutzer 86 Apr 10 19:18 VMfreebsd/ drwxrwxrwx 1 administrator domänen-benutzer 0 Apr 8 14:06 appdata/ drwxrwxrwx 1 administrator domänen-benutzer 14 Apr 10 12:15 domains/ drwxrwxrwx 1 administrator domänen-benutzer 68 Apr 10 19:18 isos/ drwxrwxrwx 1 administrator domänen-benutzer 26 Apr 8 14:06 system/ That is incorrect. How did you get that owner set for the user shares? Should be nobody:users 7 hours ago, Goulasch said: When adding the (physical) existing dir "Disk_Restore" manually to the .conf file + restart samba --> both shares can be accessed from Win11 as well as MacOS's. But after trying again to create a new share via the webGUI the manually added share is deleted in the .conf file. So the WebGUI can access and modify the .conf file. Several reboots does't help to fix that problem. Probably best to avoid working at the command line until you have a better idea how Unraid works. It is not intended to be a multipurpose multiuser linux distro. Especially editing OS files. The OS is in RAM so of course editing those won't survive reboot. Your system share has files on the array. This will impact docker/VM performance. and keep array disks spunup since these files are always open.
April 13, 20224 yr Author Quote That is incorrect. How did you get that owner set for the user shares? Should be nobody:users All entries under /mnt are owned by "administrator:domänen-benutzer". I haven't changed anything myself - not even via the terminal. But in global SMB settings this user & group are entered as default groups. I thought that this would be changed after joining to the domain ? Quote Probably best to avoid working at the command line until you have a better idea how Unraid works. It is not intended to be a multipurpose multiuser linux distro. That is understable but Unraid doesn´t work as exspected. That's the only reason I manually created a subdirectory. So I changed now the owner of ONE subdir: Quote root@UnraidTower:~# chown nobody:user /mnt/user this is the result (all subdirs are changed) : Quote root@UnraidTower:~# ls -lah /mnt total 80K drwxr-xr-x 7 root root 140 Apr 11 21:49 ./ drwxr-xr-x 20 root root 440 Apr 12 13:28 ../ drwxrwxrwx 1 nobody users 64 Apr 11 22:51 cache/ drw-rw---- 1 nobody users 82 Apr 12 10:50 disk1/ drw-rw---- 1 nobody users 0 Apr 11 22:51 disk2/ drw-rw---- 1 nobody users 82 Apr 12 10:50 user/ drw-rw---- 1 nobody users 82 Apr 12 10:50 user0/ I exspected that only the subdir "/mnt/user" will change ? After that I created a new share via Webgui --> a new page is displayed where the values for NFS and SMB security can be entered. Exactly at this point of time Quote root@UnraidTower:~# ls -lah /mnt total 80K drwxr-xr-x 7 root root 140 Apr 11 21:49 ./ drwxr-xr-x 20 root root 440 Apr 12 13:28 ../ drwxrwxrwx 1 administrator domänen-benutzer 64 Apr 11 22:51 cache/ drwxrwxrwx 1 administrator domänen-benutzer 92 Apr 13 09:25 disk1/ drwxrwxrwx 1 administrator domänen-benutzer 0 Apr 11 22:51 disk2/ drwxrwxrwx 1 administrator domänen-benutzer 92 Apr 13 09:25 user/ drwxrwxrwx 1 administrator domänen-benutzer 92 Apr 13 09:25 user0/ the owner are changed (again) from Unraid ! This doesn't change if the export for NFS and SMB is then released via Webgui. Nevertheless, all shares are now suddenly displayed via the webgui under "User Shares" and can also be accessed from the clients 🙂 BUT including internal subdirs from Unraid: "appdata", "domains", "isos", "system" ... which is certainly not intended, is it ?
April 13, 20224 yr Community Expert 6 hours ago, Goulasch said: joining to the domain I don't use AD so don't know if that is normal You might try Tools - Docker Safe New Perms
April 13, 20224 yr Community Expert 6 hours ago, Goulasch said: BUT including internal subdirs from Unraid: "appdata", "domains", "isos", "system" ... which is certainly not intended, is it ? You can set access for each of these shares. I have them secure with r/w for me and hidden
April 13, 20224 yr Author Quote You might try Tools - Docker Safe New Perms that means: Quote This utility will restore standard unRaid permissions to all shares and files without touching without touching any of the APPDATA shares for docker applications. If I understand this correctly the system will overwrite my backups (created with rsync) with the default permissions ? That would be no solution. Quote You can set access for each of these shares. I have them secure with r/w for me and hidden So far I could see, that´s only possible in the console ? Edited April 13, 20224 yr by Goulasch
April 13, 20224 yr Community Expert Seems you are still thinking of this as linux. It is a stripped down customized slackware, but On 4/12/2022 at 2:05 PM, trurl said: It is not intended to be a multipurpose multiuser linux distro. Only root user has access to the command line and webUI. All other users are strictly for file access over the network. 2 hours ago, Goulasch said: with the default permissions ? That would be no solution. You want all files and folders to have default permissions. That lets them all work correctly with user shares and for access over the network. Some docker applications may have special permission requirements for their working data so that is why Docker Safe New Perms. 4 hours ago, trurl said: You can set access for each of these shares. I have them secure with r/w for me and hidden 2 hours ago, Goulasch said: only possible in the console Absolutely not. Each user share has SMB or NFS settings that allow you to control how the share is accessed over the network for that protocol. And over the network is the only thing you need to be concerned with. Click on the share to get to its settings. Don't mess with owners and permissions at the command line unless someone specifically tells you something needs to be fixed that way. And Docker Safe New Perms (or New Permissions on a specific share) will probably fix it without going to command line.
April 14, 20224 yr Community Expert On 4/12/2022 at 2:05 PM, trurl said: not intended to be a multipurpose multiuser linux distro. But if you want that Unraid can host VMs of whatever multipurpose multiuser Linux distribution.
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.