samba@OmniOS

# 安装samba server
pkg install service/file-system/smb
pkg info smb
#系统账户登录samba
echo 'other password required pam_smb_passwd.so.1 nowarn' >> /etc/pam.conf
#启用samba
svcadm enable -r smb/server
#svcadm enable -r smb/client
#smbadm join -w WORKGROUP
#创建用户,分配uid=1000以匹配linux客户端uid
groupadd -g 1000 mrco
useradd -g mrco -u 1000 mrco
passwd mrco
id mrco
#使用系统账户登录samba,似乎不用操作..
smbadm enable-user mrco
#创建dataset
zfs create tank/samba
#zfs set mountpoint=/samba tank/samba
chown -R mrco:mrco /tank/samba
#samba分享
zfs set sharesmb='name=samba,guestok=false,description=samba' tank/samba
#zfs set sharesmb=on tank/samba
zfs get sharesmb tank/samba
svcs|grep smb
smbadm show
  • storage/zfs/omnios/samba_omnios.txt
  • 最后更改: 2019/04/16 18:31
  • (外部编辑)