Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Setup Samba shares in ZFS.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
lekto
Apprentice
Apprentice


Joined: 20 Sep 2014
Posts: 170
Location: Ancient Rome

PostPosted: Fri Dec 30, 2022 2:11 pm    Post subject: Setup Samba shares in ZFS. Reply with quote

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.
Back to top
View user's profile Send private message
mrbassie
l33t
l33t


Joined: 31 May 2013
Posts: 772
Location: over here

PostPosted: Sat Dec 31, 2022 5:37 pm    Post subject: Reply with quote

After a quick search the consensus across the other platforms appears to be to not bother with the sharesmb property outside of Solaris/Illumos.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum