OpenSolaris – Samba server

Time to share your newly created ZFS volume via samba to your windows clients.  There is some CIFS / SMB support built into the kernel now, but i’ve grown used to the SMB server…

Fire up add software – click filesystems – enable filter for “smb”, there are three packages generally. I get all three, but you only need the kernel update and the server package. The other is the SMB client.

Once installed make sure you enable the server in servicesgui.

Ensure the filesystem does not have any permission issues. I usually run chmod -R 777 /share just to ensure everyone can access the files without issue.

Add some users into smb password file (U need to create the users and sync the passwords). I usually create a guest user profile

useradd guest

smbpasswd -a guest – it should prompt for password twice (this is the password you use from windows). Press enter twice to leave the password blank.

The configuration can be done via /etc/sfw/smb.conf or via the shared folders admin gui.

I prefer doing the admin via the /etc/sfw/smb.conffile as it tends to let you have more control than the basic options available to you via the GUI. The contents of the file are as follows;  (note: i have included alot of the setting as an example which may contridict other settings)

[global] – global settings, the following are obvious

workgroup = workgroup

server string = opensolaris

wins support = yes – lets your server act as a WINS box

[share] – share name

path = /raidz1/share – share path

available = yes – enabled?

browseable = yes

public = yes

valid users = user1, user2 – only these users can access the share

writable = yes – equivalent to read / write in windows share properties

read only = yes – sets the default permissions to read only

write list = user1, user2 – these users can write to the share. Overrides above “read only” setting.

There are some good examples within /etc/sfw/smb.conf-example. Look there for some tips.

You also have an option of managing samba via the web – SWAT (samba web admin t). To get this up an running enable the swat service svc:/network/swat:default then browse to http://server:901

Optimizing SMB

I’ve found that adding this to /etc/sfw/smb.conf helps throughput in some cases. Try for yourself;  (it tends to put a higher load on cpu)


aio read size = 1
aio write size = 1

Further to this entry i have discovered that the built in CIFS / SMB service is much more efficient since it is included as part of the kernel. See my other posts on setting up cifs

Updated : 9/08/2009

I’ve swapped back to samba due to the issues i’ve had with cifs in the later releases. Remember if you wish to swap back to samba yo uneed to remove the sharesmb properties from each of your zfs shares – else on reboot zfs will re-enable the server/smb service.

There are some additional settings to ensure that your file server is the master browser for your workgroup. Put these under your [global]

domain master = Yes
local master = Yes
preferred master = Yes
os level = 35

Apparently on windows the os level reaches only 32 – so setting this to 35 ensures that your file server remains the master browser when an election is performed.

97 Replies to “OpenSolaris – Samba server”

  1. I got what you mean , thankyou for posting .Woh I am glad to find this website through google. “Delay is preferable to error.” by Thomas Jefferson.

  2. Hi, Neat post. There is a problem with your web site in web explorer, might test this… IE still is the market leader and a big component to other folks will miss your magnificent writing because of this problem.

  3. I was just searching for this info for some time. After six hours of continuous Googleing, at last I got it in your web site. I wonder what’s the lack of Google strategy that do not rank this type of informative websites in top of the list. Usually the top web sites are full of garbage.

  4. I¡¦ll immediately seize your rss as I can’t find your email subscription hyperlink or e-newsletter service. Do you’ve any? Please permit me recognise so that I may subscribe. Thanks.

  5. I¡¦ve been exploring for a bit for any high-quality articles or blog posts on this sort of space . Exploring in Yahoo I at last stumbled upon this website. Studying this info So i¡¦m satisfied to show that I have a very excellent uncanny feeling I found out just what I needed. I such a lot definitely will make certain to do not forget this website and provides it a look on a continuing basis.

  6. Hey there, You’ve done an incredible job. I will definitely digg it and personally recommend to my friends. I am sure they will be benefited from this web site.

  7. Good web site! I really love how it is simple on my eyes and the data are well written. I’m wondering how I might be notified whenever a new post has been made. I’ve subscribed to your RSS which must do the trick! Have a great day!

  8. I like what you guys are up too. Such smart work and reporting! Carry on the excellent works guys I have incorporated you guys to my blogroll. I think it’ll improve the value of my website :)

  9. I have been surfing on-line greater than three hours these days, but I never found any attention-grabbing article like yours. It¡¦s pretty price sufficient for me. In my view, if all site owners and bloggers made just right content material as you probably did, the internet shall be a lot more useful than ever before.

  10. Thank you, I’ve just been searching for info approximately this topic for a while and yours is the greatest I have came upon till now. But, what about the conclusion? Are you certain in regards to the source?

  11. As I web-site possessor I believe the content material here is rattling excellent , appreciate it for your efforts. You should keep it up forever! Good Luck.

  12. Thank you for sharing excellent informations. Your website is very cool. I am impressed by the details that you have on this site. It reveals how nicely you perceive this subject. Bookmarked this web page, will come back for more articles. You, my friend, ROCK! I found simply the information I already searched all over the place and just couldn’t come across. What a perfect web site.

  13. Excellent read, I just passed this onto a colleague who was doing a little research on that. And he actually bought me lunch because I found it for him smile Thus let me rephrase that: Thank you for lunch!

  14. Hello There. I found your blog using msn. This is a very well written article. I’ll make sure to bookmark it and return to read more of your useful information. Thanks for the post. I will definitely return.

  15. Helpful info. Lucky me I found your site by accident, and I am surprised why this coincidence did not took place in advance! I bookmarked it.

  16. Good web site! I really love how it is easy on my eyes and the data are well written. I am wondering how I could be notified when a new post has been made. I’ve subscribed to your RSS feed which must do the trick! Have a nice day!

  17. Its like you read my mind! You seem to know so much about this, like you wrote the book in it or something. I think that you can do with some pics to drive the message home a little bit, but other than that, this is magnificent blog. A great read. I’ll definitely be back.

  18. Thank you for some other informative blog. The place else may I am getting that type of information written in such a perfect means? I have a project that I am simply now working on, and I’ve been on the look out for such info.

  19. hi!,I like your writing so a lot! proportion we keep in touch more about your article on AOL? I require a specialist on this space to unravel my problem. May be that’s you! Having a look forward to peer you.

  20. I just want to say I am just newbie to blogs and certainly liked your page. Most likely I’m planning to bookmark your blog post . You certainly come with impressive articles and reviews. Kudos for sharing with us your web-site.

  21. I just want to say I am just all new to blogs and certainly savored you’re website. More than likely I’m want to bookmark your website . You surely come with excellent stories. Cheers for sharing with us your website.

  22. Hello, Neat post. There is an issue along with your site in internet explorer, may check this¡K IE nonetheless is the market chief and a huge portion of folks will omit your excellent writing because of this problem.

  23. Pretty section of content. I just stumbled upon your site and in accession capital to assert that I acquire actually enjoyed account your blog posts. Any way I will be subscribing to your feeds and even I achievement you access consistently fast.

  24. I just want to tell you that I’m very new to blogging and actually loved this website. Likely I’m going to bookmark your blog . You certainly have fantastic article content. Thank you for sharing with us your website.

  25. Great paintings! This is the kind of info that should be shared across the web. Shame on the search engines for no longer positioning this put up upper! Come on over and seek advice from my web site . Thank you =)

  26. Wow, fantastic blog layout! How long have you been running a blog for? you make running a blog look easy. The entire look of your web site is great, let alone the content!

  27. We’re a group of volunteers and opening a new scheme in our community. Your web site offered us with valuable info to work on. You’ve done a formidable job and our entire community will be thankful to you.

  28. Unquestionably believe that which you stated. Your favorite justification appeared to be on the net the easiest thing to be aware of. I say to you, I certainly get irked while people think about worries that they just do not know about. You managed to hit the nail upon the top as well as defined out the whole thing without having side effect , people can take a signal. Will probably be back to get more. Thanks

  29. Hmm it looks like your blog ate my first comment (it was extremely long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog. I as well am an aspiring blog blogger but I’m still new to the whole thing. Do you have any helpful hints for rookie blog writers? I’d definitely appreciate it.

  30. It’s the best time to make some plans for the future and it is time to be happy. I’ve read this post and if I could I want to suggest you some interesting things or advice. Perhaps you can write next articles referring to this article. I wish to read more things about it!

  31. Someone necessarily lend a hand to make seriously posts I’d state. This is the very first time I frequented your website page and so far? I amazed with the analysis you made to make this actual publish extraordinary. Magnificent activity!

  32. Very nice post. I just stumbled upon your weblog and wanted to say that I have really enjoyed browsing your blog posts. In any case I’ll be subscribing to your feed and I hope you write again very soon!

  33. As I web-site possessor I believe the content matter here is rattling excellent , appreciate it for your efforts. You should keep it up forever! Best of luck.

  34. Excellent post. I was checking continuously this blog and I am impressed! Very useful information specifically the last part :) I care for such information a lot. I was looking for this certain information for a very long time. Thank you and best of luck.