The gist of it:
pkgin in samba4
vim /opt/local/etc/samba/smb.conf
svcadm enable nmbd
svcadm enable smbd
Of course you need to tweak smb.conf to your liking.
Mine is highly specific for me environment (using zfsacl and such, but
this is the template I use for my shares), I've not included the
[global] section but just read the one that is already in smb.conf and
tweak it a bit.
; generic master share template
[gms]
# base
path = /dev/null
available = no
csc policy = disable
# access
admin users = root
guest ok = no
writeable = yes
browsable = no
vfs objects = crossrename streams_xattr
# store DOS attributes in ea
ea support = yes
map hidden = no
map system = no
map archive = no
map readonly = no
store dos attributes = yes
# handle snapshots and osx dirt
veto files =
/.zfs/.$EXTEND/.AppleDouble/.AppleDesktop/.TemporaryItems/Network Trash
Folder/._*/.DS_Store/Thumbs.db/
delete veto files = yes
# mac osx support (vfs object = +catia +fruit)
# :: buggy -> icons don't work, permissions are screwed up
#fruit:resource = stream
#fruit:metadata = stream
#fruit:encoding = native
#fruit:aapl = no
# service-side rename (files <50M)
crossrename:sizelimit = 50
# shadow copies (vfs object = +shadow_copy2)
#shadow:snapdir = .zfs/snapshot
#shadow:format = %Y%m%d_%H%M%S
#shadow:sort = desc
# zfs acls (vfs object = +zfsacl)
# module not included in pkgsrc samba4, only in my own spin
#nfs4:mode = special
#nfs4:acedup = merge
#nfs4:chown = yes
#map acl inherit = yes
#inherit acls = yes
; share example1
[example1]
copy = gms
available = yes
comment = examples
path = /share/example1
read only = user2
; share example2
[example2]
copy = gms
available = yes
comment = more examples
path = /share/example2
read only = user1
For a use to be able to log in he needs to have an account on the zone
(useradd ...) and a password set for him using smbpasswd.
e.g. smbpasswd -a user1
Any documentation on setting up samba on linux/bsd should apply to
SmartOS also.
Personally I just read the manpage for smb.conf
(https://www.samba.org/samba/docs/man/manpages/smb.conf.5.html)
Regards
Jorge
On 2015-07-05 23:43, Usama Ahmad wrote:
If someone could kindly point to or provide some detailed instructions
for setting up Samba 4 in a zone, I too, would be most obliged.
Thank you.
On Jul 5, 2015 5:12 PM, "Jorge Schrauwen" <[email protected]>
wrote:
What problems are you having with pkgsrc samba?
I recently switched from OmniOS Kernel CIFS to Samba 4.2.2 inside a
SmartOS base64-lts zone and it turned out great. Performance is on-par
with kernel CIFS. It even works better with my OS X Clients.
On 2015-07-05 22:29, Chris Ridd wrote:
On 5 Jul 2015, at 20:44, Peter Kelm <[email protected]> wrote:
I am fighting with getting Samba4 (pkgsrc) running in a SmartOS zone -
so far with limited success :-((.
I am running Samba 4.1.19 from pkgsrc successfully. My config is very
simple though. What sort of problems are you having?
When digging for a solution I found reports from Nexenta (e.g. from the
2014 Illumos day) about integrating SMB 2.1 (and 3.0) into Illumos.
Does anyone know when such an enhancement could arrive in SmartOS?
I never had much luck with the CIFS implementation back in
OpenSolaris, though I am sure it has improved since then (eg lockups
inside the kernel - only fixable by a reboot). Can you run it in a non
global zone?
Chris
http://www.listbox.com [1]
SMARTOS-DISCUSS | Archives [2] [3] | Modify [4] Your
Subscription
[1]
Links:
------
[1] http://www.listbox.com
[2] https://www.listbox.com/member/archive/184463/=now
[3] https://www.listbox.com/member/archive/rss/184463/26452851-88b650c7
[4]
https://www.listbox.com/member/?&
-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription:
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com