Hi all, new here. I have been stuck with this problem for a week and any help is appreciated.
In short, when I log into the SMB share, SMB will create a subdataset automatically, whose name is the same as the user name, and that subdataset becomes the root of the smb share.
To be more specific, I create a dataset (say the path is /mnt/wd/share) whose owner and group are both root. Then I create an SMB share, the name of which is share. I have another user called company, and it belongs to the company group (the aux group is builtin_users, which is strange because I did not set it when I created this user). The permission setting is based on POSIX_RESTRICTED ACL preset, and I add the company user into the ACL list, and give it read/write/execute permissions.
Now when I log into the smb via \\ip\share (on Win) or smb://ip/share (on Mac), a new subdataset called company will be created under /mnt/wd/share, and I can only see the files/folders under this subdataset (of course I can see nothing the first time I log into the SMB).
Does anyone see this problem before? Or did I set something wrong here? I have tried many times and I can always reproduce this. I also tried to set the owner of /mnt/wd/share as company directly, but the problem still happened.
Thank you very much.
In short, when I log into the SMB share, SMB will create a subdataset automatically, whose name is the same as the user name, and that subdataset becomes the root of the smb share.
To be more specific, I create a dataset (say the path is /mnt/wd/share) whose owner and group are both root. Then I create an SMB share, the name of which is share. I have another user called company, and it belongs to the company group (the aux group is builtin_users, which is strange because I did not set it when I created this user). The permission setting is based on POSIX_RESTRICTED ACL preset, and I add the company user into the ACL list, and give it read/write/execute permissions.
Now when I log into the smb via \\ip\share (on Win) or smb://ip/share (on Mac), a new subdataset called company will be created under /mnt/wd/share, and I can only see the files/folders under this subdataset (of course I can see nothing the first time I log into the SMB).
Does anyone see this problem before? Or did I set something wrong here? I have tried many times and I can always reproduce this. I also tried to set the owner of /mnt/wd/share as company directly, but the problem still happened.
Thank you very much.