Samba4 on SmartOS
Samba version 4 (Samba4) is available in SmartOS since pkgsrc release 2014Q4. Be careful it’s still build from the WIP (work in progress) repository.
This article is created as reference to my other samba posts.
If you upgrade from a previous version of samba you need to remove samba and some dependencies before you could install the new
pkgin remove samba pkgin remove tdb
pkgin in samba4
The default SMF manifest isn’t working correctly because the package use the wrong path to the configuration file. Check the bug report on GitHub for the new SMF manifest.
Also the minimal configuration
/opt/local/etc/samba/smb.conf from my page will not work with the new version. You need to modify and remove the
security = share option.
[global] # security = share # no usable with samba4 security = user # works with samba4 map to guest = Bad User # works with samba4 load printers = no guest account = nobody [share] path = /share public = yes only guest = yes writable = yes printable = no
Feel free to contribute to the pkgsrc-wip repository.