lekto Apprentice
Joined: 20 Sep 2014 Posts: 170 Location: Ancient Rome
|
Posted: Fri Dec 30, 2022 2:11 pm Post subject: Setup Samba shares in ZFS. |
|
|
Hi, I'm trying to use Samba shares in ZFS. On fresh system I setup Samba, add user (lekto) with password, created test share and successfully mounted it on another machine. When I try to use sharesmb in ZFS I cannot mount it nor see it in smbclient.
I use this instructions: https://wiki.archlinux.org/title/ZFS#SMB
/etc/samba/smb.conf:
Code: | [global]
usershare path = /var/lib/samba/usershares
usershare max shares = 100
usershare allow guests = yes
usershare owner only = no
# below part is my test share
browsable = yes
map to guest = Bad User
security = user
[test]
path = /mnt/test
availiable = yes
guest ok = no
valid users = lekto
writeable = yes
write list = lekto |
/var/lib/samba/usershares/nas_hdd_datapool_crypt_youtube (created by ZFS):
Code: | #VERSION 2
path=/mnt/youtube
comment=Comment: /mnt/youtube
usershare_acl=S-1-1-0:F
guest_ok=n
sharename=nas_hdd_datapool_crypt_youtube
|
smbclient -L localhost -U%:
Code: | Sharename Type Comment
--------- ---- -------
test Disk
IPC$ IPC IPC Service (Samba 4.15.12)
SMB1 disabled -- no workgroup available |
Currently I want to create three shares, all of them requiring password and only one of them is writeable. |
|