<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Daz's bits and bobs &#187; cifs</title>
	<atom:link href="http://sigtar.com/tag/cifs/feed/" rel="self" type="application/rss+xml" />
	<link>http://sigtar.com</link>
	<description>…bytes bits</description>
	<lastBuildDate>Mon, 26 Jul 2010 07:25:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>opensolaris v134 &#8211; CIFS has gone walkies</title>
		<link>http://sigtar.com/2010/04/11/opensolaris-v134-cifs-has-gone-walkies/</link>
		<comments>http://sigtar.com/2010/04/11/opensolaris-v134-cifs-has-gone-walkies/#comments</comments>
		<pubDate>Sun, 11 Apr 2010 05:16:39 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[134]]></category>
		<category><![CDATA[cifs]]></category>
		<category><![CDATA[opensolaris]]></category>
		<category><![CDATA[SUNWsmbfs]]></category>

		<guid isPermaLink="false">http://sigtar.com/?p=1110</guid>
		<description><![CDATA[Errr, I cant find the CIFS service in the 134 build.
I know it was renamed to as per below but still cant see it anywhere?
&#62; system/file-system/smb (was SUNWsmbfs*)
&#62; service/file-system/smb (was SUNWsmbs*)
Anyone have any ideas?
pkg search *smb gets me these&#8230; but i cant install them.
require         depend service/file-system/smb@0.5.11-0.134  [...]


Related posts:<ol><li><a href='http://sigtar.com/2009/08/08/opensolaris-samba-server/' rel='bookmark' title='Permanent Link: OpenSolaris &#8211; Samba server'>OpenSolaris &#8211; Samba server</a> <small>Time to share your newly created ZFS volume via samba...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Errr, I cant find the CIFS service in the 134 build.</p>
<p>I know it was renamed to as per below but still cant see it anywhere?</p>
<p>&gt; system/file-system/smb (was SUNWsmbfs*)<br />
&gt; service/file-system/smb (was SUNWsmbs*)</p>
<p>Anyone have any ideas?</p>
<p><strong>pkg search *smb</strong> gets me these&#8230; but i cant install them.</p>
<p><em>require         depend service/file-system/smb@0.5.11-0.134                    pkg:/redistributable@0.1-0.134<br />
require         depend service/file-system/smb@0.5.11-0.134                    pkg:/storage/storage-server@0.1-0.134<br />
require         depend service/file-system/smb@0.5.11-0.134                    pkg:/system/security/kerberos-5@0.5.11-0.134<br />
require         depend service/file-system/smb@0.5.11-0.134                    pkg:/storage/storage-nas@0.1-0.134<br />
require         depend system/file-system/smb@0.5.11-0.134                     pkg:/redistributable@0.1-0.134<br />
require         depend system/file-system/smb@0.5.11-0.134                     pkg:/storage/storage-server@0.1-0.134<br />
require         depend system/file-system/smb@0.5.11-0.134                     pkg:/slim_install@0.1-0.134</em></p>
<p><strong>pkg install system/file-system/smb</strong></p>
<p><em>No updates necessary for this image.</em></p>
<p><strong>pkg install service/file-system/smb</strong></p>
<p><em>Creating Plan<br />
pkg: The following pattern(s) did not match any packages in the current catalog.<br />
Try relaxing the pattern, refreshing and/or examining the catalogs:<br />
service/file-system/smb</em></p>
<p><em><strong>Update 23/05/2010</strong></em><br />
Problem was due to errors within package manager &#8212; see <a href="http://sigtar.com/2010/05/23/opensolaris-pkg-verify/" target="_blank">this </a>post</p>


<p>Related posts:<ol><li><a href='http://sigtar.com/2009/08/08/opensolaris-samba-server/' rel='bookmark' title='Permanent Link: OpenSolaris &#8211; Samba server'>OpenSolaris &#8211; Samba server</a> <small>Time to share your newly created ZFS volume via samba...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://sigtar.com/2010/04/11/opensolaris-v134-cifs-has-gone-walkies/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>opensolaris &#8211; smbd issues?</title>
		<link>http://sigtar.com/2009/07/27/opensolaris-smbd-issues/</link>
		<comments>http://sigtar.com/2009/07/27/opensolaris-smbd-issues/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 07:56:27 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[cifs]]></category>
		<category><![CDATA[dying]]></category>
		<category><![CDATA[opensolaris]]></category>
		<category><![CDATA[reboot]]></category>
		<category><![CDATA[smb]]></category>
		<category><![CDATA[smbd]]></category>

		<guid isPermaLink="false">http://sigtar.com/?p=831</guid>
		<description><![CDATA[Hmm&#8230; i&#8217;ve been having problems since the 2009.06 (snv_111b) update with cifs.
Cant pin it exactly as it could be &#8220;load&#8221; related&#8230; hmmm.
found this ? http://opensolaris.org/jive/thread.jspa?threadID=107681 this also may be a clue.. http://opensolaris.org/jive/thread.jspa?threadID=92472&#38;tstart=75
imapd ?  might have to go back to 2008.11
You might get better performance if you enable oplocks but
there are known issues with it but [...]


Related posts:<ol><li><a href='http://sigtar.com/2009/09/06/opensolaris-samba-and-network-browsing/' rel='bookmark' title='Permanent Link: Opensolaris &#8211; Samba and Network browsing'>Opensolaris &#8211; Samba and Network browsing</a> <small>If you&#8217;ve setup samba (rather than the builtin cifs/smb) chances...</small></li>
<li><a href='http://sigtar.com/2010/06/06/4k-sector-hard-drives-and-zfs/' rel='bookmark' title='Permanent Link: 4k sector hard drives and zfs'>4k sector hard drives and zfs</a> <small>I hit this as a problem recently. One of my...</small></li>
<li><a href='http://sigtar.com/2009/11/13/iscsi-in-opensolaris/' rel='bookmark' title='Permanent Link: OpenSolaris &#8211; iSCSI'>OpenSolaris &#8211; iSCSI</a> <small>Want iSCSI in opensolaris? Grab SUNWiscsitgt via package manager. enable...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Hmm&#8230; i&#8217;ve been having problems since the 2009.06 (snv_111b) update with cifs.</p>
<p>Cant pin it exactly as it could be &#8220;load&#8221; related&#8230; hmmm.</p>
<p>found this ? <a href="http://opensolaris.org/jive/thread.jspa?threadID=107681">http://opensolaris.org/jive/thread.jspa?threadID=107681</a> this also may be a clue.. <a href="http://opensolaris.org/jive/thread.jspa?threadID=92472&amp;tstart=75">http://opensolaris.org/jive/thread.jspa?threadID=92472&amp;tstart=75</a></p>
<p>imapd ?  might have to go back to 2008.11</p>
<blockquote><p>You might get better performance if you enable oplocks but<br />
there are known issues with it but you can do it just to<br />
see if you see any difference:</p>
<p>svccfg -s smb/server setprop smbd/oplock_enable=boolean: true</p></blockquote>
<p>So far running the above command has fixed things for me? I&#8217;ll update if the problem returns.</p>
<p><strong>svccfg -s smb/server setprop smbd/oplock_enable=boolean: true</strong></p>
<p><strong><em>Updated : 27/07/2009</em></strong></p>
<p>Problem came back, so i&#8217;m updating to 117 as per comments below</p>


<p>Related posts:<ol><li><a href='http://sigtar.com/2009/09/06/opensolaris-samba-and-network-browsing/' rel='bookmark' title='Permanent Link: Opensolaris &#8211; Samba and Network browsing'>Opensolaris &#8211; Samba and Network browsing</a> <small>If you&#8217;ve setup samba (rather than the builtin cifs/smb) chances...</small></li>
<li><a href='http://sigtar.com/2010/06/06/4k-sector-hard-drives-and-zfs/' rel='bookmark' title='Permanent Link: 4k sector hard drives and zfs'>4k sector hard drives and zfs</a> <small>I hit this as a problem recently. One of my...</small></li>
<li><a href='http://sigtar.com/2009/11/13/iscsi-in-opensolaris/' rel='bookmark' title='Permanent Link: OpenSolaris &#8211; iSCSI'>OpenSolaris &#8211; iSCSI</a> <small>Want iSCSI in opensolaris? Grab SUNWiscsitgt via package manager. enable...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://sigtar.com/2009/07/27/opensolaris-smbd-issues/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>OpenSolaris cifs/smb server &#8211; configuring ACL’s on shares &#8211; Part 2</title>
		<link>http://sigtar.com/2009/02/15/opensolaris-cifssmb-server-configuring-acl%e2%80%99s-on-shares-part-2/</link>
		<comments>http://sigtar.com/2009/02/15/opensolaris-cifssmb-server-configuring-acl%e2%80%99s-on-shares-part-2/#comments</comments>
		<pubDate>Sat, 14 Feb 2009 19:06:33 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[ace]]></category>
		<category><![CDATA[acl]]></category>
		<category><![CDATA[cifs]]></category>
		<category><![CDATA[permissions]]></category>
		<category><![CDATA[readonly]]></category>
		<category><![CDATA[readwrite]]></category>
		<category><![CDATA[share]]></category>
		<category><![CDATA[smb]]></category>

		<guid isPermaLink="false">http://sigtar.com/?p=351</guid>
		<description><![CDATA[I have done most of the explaining in another post on how the permissions work with a zfs cifs share &#8211; link here.
In this post I&#8217;m going to show an example of how to add multiple groups / users to a specific folder. Which then recursively adds its ACL&#8217;&#8217;s to any child objects. Its essentially [...]


Related posts:<ol><li><a href='http://sigtar.com/2009/08/08/opensolaris-samba-server/' rel='bookmark' title='Permanent Link: OpenSolaris &#8211; Samba server'>OpenSolaris &#8211; Samba server</a> <small>Time to share your newly created ZFS volume via samba...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I have done most of the explaining in another post on how the permissions work with a zfs cifs share &#8211; <a href="http://sigtar.com/2009/02/14/opensolaris-cifssmb-server-configuring-acls-on-shares/" target="_blank">link here</a>.</p>
<p>In this post I&#8217;m going to show an example of how to add multiple groups / users to a specific folder. Which then recursively adds its ACL&#8217;&#8217;s to any child objects. Its essentially like the other commands i used, but with an extra line per user or group you want to configure; </p>
<p><strong>chmod -R A=\</strong></p>
<p><strong>owner@:full_set:d:allow,\</strong></p>
<p><strong>owner@:full_set:f:allow,\</strong></p>
<p><strong><em>user:lisa:full_set:d:allow,</em>\</strong></p>
<p><strong><em>user:lisa:full_set:f:allow,</em>\<br />
</strong></p>
<p><strong>everyone@:rxaARWcs:d:allow,\</strong></p>
<p><strong>everyone@:raARWcs:f:allow \</strong></p>
<p><strong>/protected/</strong></p>
<p>The above command gives the owner and the user &#8220;lisa&#8221; full permissions, the everybody else group has read only access. If you want to add a group then just use <strong>group:</strong> instead of <strong>user:</strong> at the start.</p>
<p>This gives full access to myself and list, but deny&#8217;s access to everyone else; </p>
<p><strong>chmod -R A=\</strong></p>
<p><strong>owner@:full_set:d:allow,\</strong></p>
<p><strong>owner@:full_set:f:allow,\</strong></p>
<p><strong><em>user:daz:full_set:d:allow,\</em></strong></p>
<p><strong><em>user:daz:full_set:f:allow,\</em></strong></p>
<p><strong><em>user:lisa:full_set:d:allow,\</em></strong></p>
<p><strong><em>user:lisa:full_set:f:allow,\</em></strong></p>
<p><strong><em>everyone@:full_set:d:deny,\</em></strong></p>
<p><strong><em>everyone@:full_set:f:deny \</em></strong></p>
<p><strong>/protected/photos/</strong></p>
<p>Done.</p>


<p>Related posts:<ol><li><a href='http://sigtar.com/2009/08/08/opensolaris-samba-server/' rel='bookmark' title='Permanent Link: OpenSolaris &#8211; Samba server'>OpenSolaris &#8211; Samba server</a> <small>Time to share your newly created ZFS volume via samba...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://sigtar.com/2009/02/15/opensolaris-cifssmb-server-configuring-acl%e2%80%99s-on-shares-part-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>OpenSolaris cifs/smb server &#8211; configuring ACL&#8217;s on shares</title>
		<link>http://sigtar.com/2009/02/14/opensolaris-cifssmb-server-configuring-acls-on-shares/</link>
		<comments>http://sigtar.com/2009/02/14/opensolaris-cifssmb-server-configuring-acls-on-shares/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 19:03:27 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[access control]]></category>
		<category><![CDATA[acl]]></category>
		<category><![CDATA[cifs]]></category>
		<category><![CDATA[opensolaris]]></category>
		<category><![CDATA[share]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://sigtar.com/?p=313</guid>
		<description><![CDATA[O.k. from this  point I&#8217;m assuming you have created your zfs shares via the zfs command and renamed appropriately like so&#8230;..   (if you havent setup cifs yet then check read this)
zfs set sharesmb=on protected/backup
zfs set sharesmb=name=backup
Now to check your current shares type&#8230;
sharemgr show 
zfs 
 
zfs/protected/backup
backup=/protected/backup
zfs/protected/photos
photos=/protected/photos
Now its time to look at NFSv4 ACL&#8217;s. This page has [...]


Related posts:<ol><li><a href='http://sigtar.com/2009/08/08/opensolaris-samba-server/' rel='bookmark' title='Permanent Link: OpenSolaris &#8211; Samba server'>OpenSolaris &#8211; Samba server</a> <small>Time to share your newly created ZFS volume via samba...</small></li>
<li><a href='http://sigtar.com/2009/11/13/iscsi-in-opensolaris/' rel='bookmark' title='Permanent Link: OpenSolaris &#8211; iSCSI'>OpenSolaris &#8211; iSCSI</a> <small>Want iSCSI in opensolaris? Grab SUNWiscsitgt via package manager. enable...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>O.k. from this  point I&#8217;m assuming you have created your zfs shares via the <strong>zfs </strong>command and renamed appropriately like so&#8230;..   (<a href="http://sigtar.com/2009/02/13/opensolaris-migrating-from-samba-to-cifs/" target="_blank">if you havent setup cifs yet then check read this</a>)</p>
<p><strong>zfs set sharesmb=on protected/backup</strong></p>
<p><strong>zfs set sharesmb=name=backup</strong></p>
<p>Now to check your current shares type&#8230;</p>
<p><strong>sharemgr show </strong></p>
<p><em>zfs </em></p>
<p><em> </em></p>
<p><em>zfs/protected/backup<br />
backup=/protected/backup</em></p>
<p><em>zfs/protected/photos<br />
photos=/protected/photos</em></p>
<p>Now its time to look at NFSv4 ACL&#8217;s. This page has a great explanation of ACL&#8217;s and how to set things up. <a href="http://cuddletech.com/blog/pivot/entry.php?id=939">http://cuddletech.com/blog/pivot/entry.php?id=939</a></p>
<p>The ZFS manual here has the compact access and inheritance codes for chmod : <a href="http://opensolaris.org/os/community/zfs/docs/zfsadmin.pdf">http://opensolaris.org/os/community/zfs/docs/zfsadmin.pdf</a></p>
<p>Here are the current compact codes for access control;</p>
<p>add_file w , add_subdirectory p , delete d , delete_child D , execute x , list_directory r , read_acl c , read_attributes a , read_data r , read_xattr R , write_xattr W , write_data w , write_attributes A , write_acl C , write_owner o</p>
<p>Here are the current compact codes for inheritance control;</p>
<p>file_inherit f , dir_inherit d , inherit_only i , no_propagate n</p>
<p>So&#8230; The below command (referencing above compact codes) will give me (the owner) full permissions to files / directories, and read only access to everyone else. I have enabled inheritance so newly created files should also maintain their parents ACL without windows creating its own. Note: i used <strong>chown </strong>on the root of the my share first  i.e. <strong>chown -R daz /protected</strong></p>
<p>then&#8230; </p>
<p><strong>chmod -R A=\</strong></p>
<p><strong>owner@:wACpdDo:d:allow,\</strong></p>
<p><strong>owner@:wACpdDo:f:allow,\</strong></p>
<p><strong>everyone@:rxaARWcs:d:allow,\</strong></p>
<p><strong>everyone@:raARWcs:f:allow \</strong></p>
<p><strong>/protected/</strong></p>
<p>Remember to test that this has provided what you want. Connect to your share as guest test the permissions, then connect as the owner and test permissions again. The fun thing about this particular ACL system is that you are not restricted to just one owner and one group. You can add additional lines as required using user: and group: attributes. <a href="http://sigtar.com/2009/02/15/opensolaris-cifssmb-server-configuring-acl%e2%80%99s-on-shares-part-2/" target="_blank">I&#8217;ve done a multi-user ACL post here</a>.</p>
<p>There is alot of flexibility &#8211; i&#8217;d say even more than the samba server options by a long shot. Its probably a little bit more fiddly getting your commands right, but once up and running you can have alot more control.</p>
<p>There are also &#8220;ACL sets&#8221; which combine the above attributes into groups&#8230;.. i.e .you can have just the word &#8220;full_set&#8221; (full permissions) or &#8220;read_set&#8221;  (supposedly gives you read, but i couldn&#8217;t see any child files after using this) between the first set of colons in the above command&#8230; Using ACL sets the above command could be changed to&#8230;</p>
<p><strong>chmod -R A=\</strong></p>
<p><strong>owner@:full_set:d:allow,\</strong></p>
<p><strong>owner@:full_set:f:allow,\</strong></p>
<p><strong>everyone@:rxaARWcs:d:allow,\</strong></p>
<p><strong>everyone@:raARWcs:f:allow \</strong></p>
<p><strong>/protected/</strong></p>
<p>This should still give the owner full permissions (previously the owner just inherited the everyone groups permissions it didnt have as well)</p>
<p>These are the possible choices for ACL sets: full_set , read_set , modify_set , write_set</p>
<p>see here for more examples : <a href="http://sigtar.com/2009/02/15/opensolaris-cifssmb-server-configuring-acl%E2%80%99s-on-shares-part-2/">http://sigtar.com/2009/02/15/opensolaris-cifssmb-server-configuring-acl’s-on-shares-part-2/</a></p>


<p>Related posts:<ol><li><a href='http://sigtar.com/2009/08/08/opensolaris-samba-server/' rel='bookmark' title='Permanent Link: OpenSolaris &#8211; Samba server'>OpenSolaris &#8211; Samba server</a> <small>Time to share your newly created ZFS volume via samba...</small></li>
<li><a href='http://sigtar.com/2009/11/13/iscsi-in-opensolaris/' rel='bookmark' title='Permanent Link: OpenSolaris &#8211; iSCSI'>OpenSolaris &#8211; iSCSI</a> <small>Want iSCSI in opensolaris? Grab SUNWiscsitgt via package manager. enable...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://sigtar.com/2009/02/14/opensolaris-cifssmb-server-configuring-acls-on-shares/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>OpenSolaris &#8211; Migrating from samba to cifs</title>
		<link>http://sigtar.com/2009/02/13/opensolaris-migrating-from-samba-to-cifs/</link>
		<comments>http://sigtar.com/2009/02/13/opensolaris-migrating-from-samba-to-cifs/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 19:07:37 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[cifs]]></category>
		<category><![CDATA[opensolaris]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[smb]]></category>

		<guid isPermaLink="false">http://sigtar.com/?p=292</guid>
		<description><![CDATA[OpenSolaris 2008.11 has a cifs/smb server built into the kernel. From what i have been reading (and discovering) this is a much more efficient and faster way to get your files out into the network.
Previously i have run a dedicated samba service to share my files as I&#8217;ve come from various linux distros which require [...]


Related posts:<ol><li><a href='http://sigtar.com/2009/08/08/opensolaris-samba-server/' rel='bookmark' title='Permanent Link: OpenSolaris &#8211; Samba server'>OpenSolaris &#8211; Samba server</a> <small>Time to share your newly created ZFS volume via samba...</small></li>
<li><a href='http://sigtar.com/2009/09/06/opensolaris-samba-and-network-browsing/' rel='bookmark' title='Permanent Link: Opensolaris &#8211; Samba and Network browsing'>Opensolaris &#8211; Samba and Network browsing</a> <small>If you&#8217;ve setup samba (rather than the builtin cifs/smb) chances...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>OpenSolaris 2008.11 has a cifs/smb server built into the kernel. From what i have been reading (and discovering) this is a much more efficient and faster way to get your files out into the network.</p>
<div>Previously i have run a dedicated samba service to share my files as I&#8217;ve come from various linux distros which require it. Seems i should be doing things differently on OpenSolaris.</div>
<p>The dedicated samba service is called;</p>
<p><strong>svc:/network/samba:default</strong></p>
<p>The new kernel embedded solaris smb/cifs service is called;</p>
<p><strong>svc:/network/smb/server:default</strong></p>
<p>If you do not have it running or installed you&#8217;ll need to add the following packages (use package manager); </p>
<p><strong>SUNWsmbs </strong></p>
<p><strong>SUNWsmbskr</strong></p>
<p><strong>Update : both these packages are called SUNWsmbfs in newer builds</strong></p>
<p>Enable the service via &#8220;services&#8221; gui else use the <strong>svcadm </strong>command; </p>
<p><strong>svcadm enable svc:/network/smb/server:default</strong></p>
<p>This is a great page on how to do a basic cifs setup <a href="http://blogs.sun.com/timthomas/entry/solaris_cifs_in_workgroup_mode" target="_blank">http://blogs.sun.com/timthomas/entry/solaris_cifs_in_workgroup_mode</a></p>
<p>I just need to find a bit more detail on how to configure access to the shares (update: see below). In another post i made previously using samba it was easy enough to restrict guests to read only while giving some users rw access&#8230; I&#8217;m also interested in whether its possible to backup or manually configure the cifs server via any config file? <em>Still looking into this one.</em></p>
<p>First step is to disable the samba service and enable the solaris smb/cifs service;</p>
<p><strong>svcadm disable network/samba</strong></p>
<p><strong>svcadm enable -r smb/server </strong>- the &#8220;r&#8221; switch also enables all services that smb requires.</p>
<p>The next step is to add the following line to your <strong>/etc/pam.conf</strong> file. This is so future changes to passwords  also update the smb password file;</p>
<p><strong>other   password required       pam_smb_passwd.so.1     nowarn</strong></p>
<p>now set the name of the workgroup&#8230;</p>
<p><strong>smbadm join -w workgroup</strong></p>
<p>now setup your users (you have to reset your current passwords to update the password file above). I usually create and use a &#8220;Guest&#8221; account to keep some windows boxes happy. I set the guest account password to blank&#8230; </p>
<p><strong>useradd guest </strong></p>
<p><strong>passwd guest</strong> &#8211; then enter twice to enter a blank password</p>
<p>Next its time to setup the actual shares. If you have a zfs pool setup (you most likey do if you are running opensolaris) then you can share your data via the zfs command like so&#8230;.   (i have a &#8220;backups&#8221; zfs file system within a &#8220;unprotected&#8221; zpool)</p>
<p><strong>zfs set sharesmb=on unprotected/backups</strong></p>
<p>Unfortunately this creates a share called &#8220;unprotected_backups&#8221; which can be seen via the <strong>sharemgr show -vp </strong>command. To rename the share to something more appropriate do the following&#8230;</p>
<p><strong>zfs set sharesmb=name=backups unprotected/backups</strong></p>
<p>All going well the share should now be called &#8220;backups&#8221;, if you have both the old and new name listed restart the smb server : <strong>svcadm restart smb/server</strong></p>
<p>From your windows machine you should be able to browse to your share via <strong>\\servername\backups</strong>, if you get a prompt then type &#8220;guest&#8221; and press enter. Here is an example of a quick and easy way to mount drives via an XP commandline&#8230;</p>
<p><strong>net use * \\serverip\backups /user:guest</strong></p>
<p>Update: i have figured out the ACLs for cifs &#8212; <a href="http://sigtar.com/2009/02/14/opensolaris-cifssmb-server-configuring-acls-on-shares/" target="_blank">See this Post</a></p>


<p>Related posts:<ol><li><a href='http://sigtar.com/2009/08/08/opensolaris-samba-server/' rel='bookmark' title='Permanent Link: OpenSolaris &#8211; Samba server'>OpenSolaris &#8211; Samba server</a> <small>Time to share your newly created ZFS volume via samba...</small></li>
<li><a href='http://sigtar.com/2009/09/06/opensolaris-samba-and-network-browsing/' rel='bookmark' title='Permanent Link: Opensolaris &#8211; Samba and Network browsing'>Opensolaris &#8211; Samba and Network browsing</a> <small>If you&#8217;ve setup samba (rather than the builtin cifs/smb) chances...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://sigtar.com/2009/02/13/opensolaris-migrating-from-samba-to-cifs/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
