<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Home Fileserver: ZFS File Systems</title>
	<atom:link href="http://breden.org.uk/2009/05/10/home-fileserver-zfs-file-systems/feed/" rel="self" type="application/rss+xml" />
	<link>http://breden.org.uk/2009/05/10/home-fileserver-zfs-file-systems/</link>
	<description>Complexifying simplicity</description>
	<lastBuildDate>Wed, 10 Mar 2010 04:58:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Simon</title>
		<link>http://breden.org.uk/2009/05/10/home-fileserver-zfs-file-systems/comment-page-1/#comment-17021</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Sun, 31 Jan 2010 21:10:59 +0000</pubDate>
		<guid isPermaLink="false">http://breden.org.uk/?p=134#comment-17021</guid>
		<description>Thanks Christoph. It&#039;s a while back now and I can&#039;t remember, but I think I set  “casesensitivity=mixed” when I was setting up the file system that was to be used for a Windows user.

Cheers,
Simon</description>
		<content:encoded><![CDATA[<p>Thanks Christoph. It&#8217;s a while back now and I can&#8217;t remember, but I think I set  “casesensitivity=mixed” when I was setting up the file system that was to be used for a Windows user.</p>
<p>Cheers,<br />
Simon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christoph Jahn</title>
		<link>http://breden.org.uk/2009/05/10/home-fileserver-zfs-file-systems/comment-page-1/#comment-17016</link>
		<dc:creator>Christoph Jahn</dc:creator>
		<pubDate>Sat, 30 Jan 2010 07:41:47 +0000</pubDate>
		<guid isPermaLink="false">http://breden.org.uk/?p=134#comment-17016</guid>
		<description>All your ZFS stuff is very nice, thanks for this.

I was just going over this post again, as I am currently changing my file system structure. What strikes me is that only in one place you create the file system with &quot;casesensitivity=mixed&quot;. Is there any particular reason for that?

FYI: It seems that with snv_131 the &quot;set sharesmb=name=xxxxx&quot; is broken.

Cheers,
Christoph</description>
		<content:encoded><![CDATA[<p>All your ZFS stuff is very nice, thanks for this.</p>
<p>I was just going over this post again, as I am currently changing my file system structure. What strikes me is that only in one place you create the file system with &#8220;casesensitivity=mixed&#8221;. Is there any particular reason for that?</p>
<p>FYI: It seems that with snv_131 the &#8220;set sharesmb=name=xxxxx&#8221; is broken.</p>
<p>Cheers,<br />
Christoph</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://breden.org.uk/2009/05/10/home-fileserver-zfs-file-systems/comment-page-1/#comment-16896</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Sat, 14 Nov 2009 00:48:33 +0000</pubDate>
		<guid isPermaLink="false">http://breden.org.uk/?p=134#comment-16896</guid>
		<description>Thanks Bart.

When you boot your client OS, such as Windows, Mac OS or Linux etc, you need to connect to the shared media file systems using the &#039;media&#039; user.

Cheers,
Simon</description>
		<content:encoded><![CDATA[<p>Thanks Bart.</p>
<p>When you boot your client OS, such as Windows, Mac OS or Linux etc, you need to connect to the shared media file systems using the &#8216;media&#8217; user.</p>
<p>Cheers,<br />
Simon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bart</title>
		<link>http://breden.org.uk/2009/05/10/home-fileserver-zfs-file-systems/comment-page-1/#comment-16887</link>
		<dc:creator>Bart</dc:creator>
		<pubDate>Tue, 10 Nov 2009 12:21:01 +0000</pubDate>
		<guid isPermaLink="false">http://breden.org.uk/?p=134#comment-16887</guid>
		<description>Hi Simon,

Thanks for this great guide for a linux starter like me! I still have one problem: i created a user - like Fred. But everything Fred creates in the media-filesystem is not visible for other users (like wilma), because the files are owned by Fred and the group is also Fred (instead of the media group). How can i change this, so that everything Fred does in the media-filesystem is created with group media ?

Many thanks,
Bart</description>
		<content:encoded><![CDATA[<p>Hi Simon,</p>
<p>Thanks for this great guide for a linux starter like me! I still have one problem: i created a user &#8211; like Fred. But everything Fred creates in the media-filesystem is not visible for other users (like wilma), because the files are owned by Fred and the group is also Fred (instead of the media group). How can i change this, so that everything Fred does in the media-filesystem is created with group media ?</p>
<p>Many thanks,<br />
Bart</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: svrocket</title>
		<link>http://breden.org.uk/2009/05/10/home-fileserver-zfs-file-systems/comment-page-1/#comment-16798</link>
		<dc:creator>svrocket</dc:creator>
		<pubDate>Thu, 22 Oct 2009 05:50:36 +0000</pubDate>
		<guid isPermaLink="false">http://breden.org.uk/?p=134#comment-16798</guid>
		<description>Simon,

fascinating ACL writeup, it looks daunting. In my shop they did it bass-ackwards and windows is the (normal) SMB server and NFS server. My sun boxes are the dummy nfs clients. I&#039;m thinking of reversing the roles and making opensolaris the cifs/smb server, and nixing the nfs. 

But what I wanted to comment on, was &quot;setting ‘copies’ attribute to 2&quot; ZFS. Dude - zfs snapshot trump copies=x. zfs clones trump snapshots. zfs SEND to another opensolaris server or offsite trumps clones.

ps - your captachas are too hard!</description>
		<content:encoded><![CDATA[<p>Simon,</p>
<p>fascinating ACL writeup, it looks daunting. In my shop they did it bass-ackwards and windows is the (normal) SMB server and NFS server. My sun boxes are the dummy nfs clients. I&#8217;m thinking of reversing the roles and making opensolaris the cifs/smb server, and nixing the nfs. </p>
<p>But what I wanted to comment on, was &#8220;setting ‘copies’ attribute to 2&#8243; ZFS. Dude &#8211; zfs snapshot trump copies=x. zfs clones trump snapshots. zfs SEND to another opensolaris server or offsite trumps clones.</p>
<p>ps &#8211; your captachas are too hard!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://breden.org.uk/2009/05/10/home-fileserver-zfs-file-systems/comment-page-1/#comment-12086</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Thu, 23 Jul 2009 18:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://breden.org.uk/?p=134#comment-12086</guid>
		<description>Hi fyleow,

Thanks for the info. If you mount the shares for (1) tank/home/fred/projects, (2) tank/home/fred/photo &amp; (3) tank/home/fred/video as three separate shares on the client OS then it works fine, at least it works fine for me.

Simon</description>
		<content:encoded><![CDATA[<p>Hi fyleow,</p>
<p>Thanks for the info. If you mount the shares for (1) tank/home/fred/projects, (2) tank/home/fred/photo &#038; (3) tank/home/fred/video as three separate shares on the client OS then it works fine, at least it works fine for me.</p>
<p>Simon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fyleow</title>
		<link>http://breden.org.uk/2009/05/10/home-fileserver-zfs-file-systems/comment-page-1/#comment-12069</link>
		<dc:creator>fyleow</dc:creator>
		<pubDate>Thu, 23 Jul 2009 04:53:15 +0000</pubDate>
		<guid isPermaLink="false">http://breden.org.uk/?p=134#comment-12069</guid>
		<description>Hi Simon,

Sorry about that I did a hack job of copy and pasting. It turns out that what I&#039;m describing is a known limitation in ZFS.

If I create a series of file systems like your fred example and navigate to the parent fred file system over the share (/tank/home/fred) I can only have read/write access to that file system. I will still see the mounted child file systems (e.g. /tank/home/fred/projects) as folders but if I try to read/write to them I will get an access denied message.

Anyway this bug report filed explains it much better than I can. 

http://bugs.opensolaris.org/view_bug.do?bug_id=6820940</description>
		<content:encoded><![CDATA[<p>Hi Simon,</p>
<p>Sorry about that I did a hack job of copy and pasting. It turns out that what I&#8217;m describing is a known limitation in ZFS.</p>
<p>If I create a series of file systems like your fred example and navigate to the parent fred file system over the share (/tank/home/fred) I can only have read/write access to that file system. I will still see the mounted child file systems (e.g. /tank/home/fred/projects) as folders but if I try to read/write to them I will get an access denied message.</p>
<p>Anyway this bug report filed explains it much better than I can. </p>
<p><a href="http://bugs.opensolaris.org/view_bug.do?bug_id=6820940" rel="nofollow">http://bugs.opensolaris.org/view_bug.do?bug_id=6820940</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://breden.org.uk/2009/05/10/home-fileserver-zfs-file-systems/comment-page-1/#comment-11923</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Sun, 19 Jul 2009 10:21:43 +0000</pubDate>
		<guid isPermaLink="false">http://breden.org.uk/?p=134#comment-11923</guid>
		<description>Hi fyleow,

I updated your original comment with your corrections.

A couple of points:

1. I presume you are using SMB/CIFS protocol from your client computer to connect to your shares, and not the actual Samba software which is a free software re-implementation of SMB/CIFS networking protocol?

2. Also, it appears that the &#039;zfs set sharesmb=name=fyleow&#039; within the two blocks above are identical. I presume this is a typo and you have, in fact, used different names for your shares -- e.g.:
zfs set sharesmb=name=fyleow tank/home/fyleow
zfs set sharesmb=name=fyleow_music tank/home/fyleow/music</description>
		<content:encoded><![CDATA[<p>Hi fyleow,</p>
<p>I updated your original comment with your corrections.</p>
<p>A couple of points:</p>
<p>1. I presume you are using SMB/CIFS protocol from your client computer to connect to your shares, and not the actual Samba software which is a free software re-implementation of SMB/CIFS networking protocol?</p>
<p>2. Also, it appears that the &#8216;zfs set sharesmb=name=fyleow&#8217; within the two blocks above are identical. I presume this is a typo and you have, in fact, used different names for your shares &#8212; e.g.:<br />
zfs set sharesmb=name=fyleow tank/home/fyleow<br />
zfs set sharesmb=name=fyleow_music tank/home/fyleow/music</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fyleow</title>
		<link>http://breden.org.uk/2009/05/10/home-fileserver-zfs-file-systems/comment-page-1/#comment-11898</link>
		<dc:creator>fyleow</dc:creator>
		<pubDate>Sat, 18 Jul 2009 23:33:09 +0000</pubDate>
		<guid isPermaLink="false">http://breden.org.uk/?p=134#comment-11898</guid>
		<description>Whoops a few typos in my post. That should read tank/home/fyleow/music and the chmod on the commands should be /tank/home/fyleow/music on the second set.</description>
		<content:encoded><![CDATA[<p>Whoops a few typos in my post. That should read tank/home/fyleow/music and the chmod on the commands should be /tank/home/fyleow/music on the second set.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fyleow</title>
		<link>http://breden.org.uk/2009/05/10/home-fileserver-zfs-file-systems/comment-page-1/#comment-11896</link>
		<dc:creator>fyleow</dc:creator>
		<pubDate>Sat, 18 Jul 2009 23:31:14 +0000</pubDate>
		<guid isPermaLink="false">http://breden.org.uk/?p=134#comment-11896</guid>
		<description>Hi Simon,

I set up something in a VM using your guide but I&#039;m having trouble with samba. I use OS X 10.5 to access the shares I have set up which are tank/home/fyleow and tank/home/fyleow/music. I use finder to mount tank/home/fyleow and I can see the music directory, but I cannot read or write to it. In order to read and write to music I have to mount tank/home/fyleow/music separately. Any idea what might be the issue here? I don&#039;t want to have to mount each file system under /tank/home/fyleow individually.

I created the following file systems:

zfs create tank/home
zfs create tank/home/fyleow
zfs create tank/home/fyleow/music

Then I applied the following

zfs set aclinherit=passthrough tank/home/fyleow
zfs set aclmode=passthrough tank/home/fyleow
chmod A=owner@:rwxpdDaARWcCos:fd-----:allow,group@:rwxpdDaARWcCos:fd-----:allow,everyone@:rwxpdDaARWcCos:fd-----:deny     /tank/home/fyleow/
chown fyleow:fyleow /tank/home/fyleow
zfs set sharesmb=name=fyleow tank/home/fyleow

zfs set aclinherit=passthrough tank/home/fyleow/music
zfs set aclmode=passthrough tank/home/fyleow/music
chmod A=owner@:rwxpdDaARWcCos:fd-----:allow,group@:rwxpdDaARWcCos:fd-----:allow,everyone@:rwxpdDaARWcCos:fd-----:deny     /tank/home/fyleow/music
chown fyleow:fyleow /tank/home/fyleow/music
zfs set sharesmb=name=fyleow tank/home/fyleow/music</description>
		<content:encoded><![CDATA[<p>Hi Simon,</p>
<p>I set up something in a VM using your guide but I&#8217;m having trouble with samba. I use OS X 10.5 to access the shares I have set up which are tank/home/fyleow and tank/home/fyleow/music. I use finder to mount tank/home/fyleow and I can see the music directory, but I cannot read or write to it. In order to read and write to music I have to mount tank/home/fyleow/music separately. Any idea what might be the issue here? I don&#8217;t want to have to mount each file system under /tank/home/fyleow individually.</p>
<p>I created the following file systems:</p>
<p>zfs create tank/home<br />
zfs create tank/home/fyleow<br />
zfs create tank/home/fyleow/music</p>
<p>Then I applied the following</p>
<p>zfs set aclinherit=passthrough tank/home/fyleow<br />
zfs set aclmode=passthrough tank/home/fyleow<br />
chmod A=owner@:rwxpdDaARWcCos:fd&#8212;&#8211;:allow,group@:rwxpdDaARWcCos:fd&#8212;&#8211;:allow,everyone@:rwxpdDaARWcCos:fd&#8212;&#8211;:deny     /tank/home/fyleow/<br />
chown fyleow:fyleow /tank/home/fyleow<br />
zfs set sharesmb=name=fyleow tank/home/fyleow</p>
<p>zfs set aclinherit=passthrough tank/home/fyleow/music<br />
zfs set aclmode=passthrough tank/home/fyleow/music<br />
chmod A=owner@:rwxpdDaARWcCos:fd&#8212;&#8211;:allow,group@:rwxpdDaARWcCos:fd&#8212;&#8211;:allow,everyone@:rwxpdDaARWcCos:fd&#8212;&#8211;:deny     /tank/home/fyleow/music<br />
chown fyleow:fyleow /tank/home/fyleow/music<br />
zfs set sharesmb=name=fyleow tank/home/fyleow/music</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://breden.org.uk/2009/05/10/home-fileserver-zfs-file-systems/comment-page-1/#comment-11260</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Mon, 06 Jul 2009 14:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://breden.org.uk/?p=134#comment-11260</guid>
		<description>Thanks Brad, you spotted my omission :) Yes, I forgot to complete that part. I think what I was going to do additionally to the irreplaceable user-created content file system was to set the &#039;copies&#039; attribute to 2, so that ZFS would create two copies of each file stored in this file system to further reduce chance of data loss. Set the copies attribute to the value of 3 for maximum protection. Thanks for pointing that out!

Cheers,
Simon

&lt;pre&gt;
# zfs set copies=2 tank/home/fred/photo
# zfs set copies=2 tank/home/fred/video
# zfs set copies=2 tank/home/fred/projects
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Thanks Brad, you spotted my omission <img src='http://breden.org.uk/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Yes, I forgot to complete that part. I think what I was going to do additionally to the irreplaceable user-created content file system was to set the &#8216;copies&#8217; attribute to 2, so that ZFS would create two copies of each file stored in this file system to further reduce chance of data loss. Set the copies attribute to the value of 3 for maximum protection. Thanks for pointing that out!</p>
<p>Cheers,<br />
Simon</p>
<pre>
# zfs set copies=2 tank/home/fred/photo
# zfs set copies=2 tank/home/fred/video
# zfs set copies=2 tank/home/fred/projects
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brad</title>
		<link>http://breden.org.uk/2009/05/10/home-fileserver-zfs-file-systems/comment-page-1/#comment-11231</link>
		<dc:creator>Brad</dc:creator>
		<pubDate>Sun, 05 Jul 2009 19:35:11 +0000</pubDate>
		<guid isPermaLink="false">http://breden.org.uk/?p=134#comment-11231</guid>
		<description>Simon,

Early in the post you seem to emphasize the relevance of the media filesystems as being replacable and the home filesystems as being irreplacable, but I don&#039;t see any different in their creation except for access controls.

Can you expand on how else they are treated differently, or at least tell me what I&#039;m missing?

Thanks</description>
		<content:encoded><![CDATA[<p>Simon,</p>
<p>Early in the post you seem to emphasize the relevance of the media filesystems as being replacable and the home filesystems as being irreplacable, but I don&#8217;t see any different in their creation except for access controls.</p>
<p>Can you expand on how else they are treated differently, or at least tell me what I&#8217;m missing?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://breden.org.uk/2009/05/10/home-fileserver-zfs-file-systems/comment-page-1/#comment-9969</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Wed, 17 Jun 2009 16:04:14 +0000</pubDate>
		<guid isPermaLink="false">http://breden.org.uk/?p=134#comment-9969</guid>
		<description>Good news and thanks a lot. Yes, the ACL stuff is not trivial and I haven&#039;t managed to find a very informative and simple explanation with practical non-trivial examples yet... soon I hope to dig deeper into that subject...</description>
		<content:encoded><![CDATA[<p>Good news and thanks a lot. Yes, the ACL stuff is not trivial and I haven&#8217;t managed to find a very informative and simple explanation with practical non-trivial examples yet&#8230; soon I hope to dig deeper into that subject&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fyleow</title>
		<link>http://breden.org.uk/2009/05/10/home-fileserver-zfs-file-systems/comment-page-1/#comment-9956</link>
		<dc:creator>fyleow</dc:creator>
		<pubDate>Wed, 17 Jun 2009 04:54:06 +0000</pubDate>
		<guid isPermaLink="false">http://breden.org.uk/?p=134#comment-9956</guid>
		<description>Thanks Simon, that worked perfectly. I was actually on root but I did &#039;su -&#039; instead of just &#039;su&#039;. 

root@opensolaris:~# which ls
/usr/gnu/bin/ls

The ACL stuff is pure greek to me so I think I might stick to the regular permission setup for now. Your blog is a great resource for ZFS. Thanks for posting your experiences with it.</description>
		<content:encoded><![CDATA[<p>Thanks Simon, that worked perfectly. I was actually on root but I did &#8217;su -&#8217; instead of just &#8217;su&#8217;. </p>
<p>root@opensolaris:~# which ls<br />
/usr/gnu/bin/ls</p>
<p>The ACL stuff is pure greek to me so I think I might stick to the regular permission setup for now. Your blog is a great resource for ZFS. Thanks for posting your experiences with it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://breden.org.uk/2009/05/10/home-fileserver-zfs-file-systems/comment-page-1/#comment-9884</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Mon, 15 Jun 2009 19:28:25 +0000</pubDate>
		<guid isPermaLink="false">http://breden.org.uk/?p=134#comment-9884</guid>
		<description>OK, took a look as I was curious and my earlier comments seem to be true.

If you login as a non-root user, and look where ls and chmod are, you&#039;ll see that they are being found at /usr/gnu/bin:

&lt;pre&gt;
simon@blackhole:~$ which ls
/usr/gnu/bin/ls
simon@blackhole:~$ which chmod
/usr/gnu/bin/chmod
&lt;/pre&gt;

Whereas if you login as root, you&#039;ll pick up these commands from /usr/bin:

&lt;pre&gt;
simon@blackhole:~$ su
Password: 
simon@blackhole:~# which ls
/usr/bin/ls
simon@blackhole:~# which chmod
/usr/bin/chmod
&lt;/pre&gt;

Thanks for alerting me to this, I&#039;ll have to fix my user&#039;s path to use the more useful ones at /usr/bin which are capable of handling NFSv4 ACLs!

Anyway, out of the box with the default OpenSolaris 2009.06 installation, as root you will have no problems running the commands listed above.

Taking a look at the PATH environment variable for a non-root user we can see that /usr/gnu/bin precedes /usr/bin by default, so I suppose swapping them round should work, with hopefully no strange side-effects... :

&lt;pre&gt;
simon@blackhole:~$ env &#124; grep ^PATH
PATH=/usr/gnu/bin:/usr/bin:/usr/X11/bin:/usr/sbin:/sbin
&lt;/pre&gt;

And for root, we see this:

&lt;pre&gt;
# env &#124; grep ^PATH
PATH=/usr/sbin:/usr/bin
&lt;/pre&gt;

So root has no /usr/gnu/bin directory in its PATH.</description>
		<content:encoded><![CDATA[<p>OK, took a look as I was curious and my earlier comments seem to be true.</p>
<p>If you login as a non-root user, and look where ls and chmod are, you&#8217;ll see that they are being found at /usr/gnu/bin:</p>
<pre>
simon@blackhole:~$ which ls
/usr/gnu/bin/ls
simon@blackhole:~$ which chmod
/usr/gnu/bin/chmod
</pre>
<p>Whereas if you login as root, you&#8217;ll pick up these commands from /usr/bin:</p>
<pre>
simon@blackhole:~$ su
Password:
simon@blackhole:~# which ls
/usr/bin/ls
simon@blackhole:~# which chmod
/usr/bin/chmod
</pre>
<p>Thanks for alerting me to this, I&#8217;ll have to fix my user&#8217;s path to use the more useful ones at /usr/bin which are capable of handling NFSv4 ACLs!</p>
<p>Anyway, out of the box with the default OpenSolaris 2009.06 installation, as root you will have no problems running the commands listed above.</p>
<p>Taking a look at the PATH environment variable for a non-root user we can see that /usr/gnu/bin precedes /usr/bin by default, so I suppose swapping them round should work, with hopefully no strange side-effects&#8230; :</p>
<pre>
simon@blackhole:~$ env | grep ^PATH
PATH=/usr/gnu/bin:/usr/bin:/usr/X11/bin:/usr/sbin:/sbin
</pre>
<p>And for root, we see this:</p>
<pre>
# env | grep ^PATH
PATH=/usr/sbin:/usr/bin
</pre>
<p>So root has no /usr/gnu/bin directory in its PATH.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://breden.org.uk/2009/05/10/home-fileserver-zfs-file-systems/comment-page-1/#comment-9878</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Mon, 15 Jun 2009 15:56:04 +0000</pubDate>
		<guid isPermaLink="false">http://breden.org.uk/?p=134#comment-9878</guid>
		<description>Hi there, my commands were run on an SXCE system, so it&#039;s quite possible they changed the &#039;ls&#039; and &#039;chmod&#039; commands that appear on the default path on OpenSolaris.

From memory, they changed the functionality of the &#039;ls&#039; and &#039;chmod&#039; commands to handle the &#039;new&#039; NFSv4 ACLs to avoid having to use getacl and setacl commands, but the commands in the default path might be the &#039;old&#039; non-NFSv4 ACL-capable commands, if you see what I mean.

I have recently installed OpenSolaris 2009.06 so I&#039;ll try out these commands a little later tonight when I have time. If you&#039;re in a hurry though, check to see if multiple (probably two)  versions of &#039;ls&#039; and &#039;chmod&#039; exist on your OpenSolaris system, and if so, run the commands found at the other location.

Cheers,
Simon</description>
		<content:encoded><![CDATA[<p>Hi there, my commands were run on an SXCE system, so it&#8217;s quite possible they changed the &#8216;ls&#8217; and &#8216;chmod&#8217; commands that appear on the default path on OpenSolaris.</p>
<p>From memory, they changed the functionality of the &#8216;ls&#8217; and &#8216;chmod&#8217; commands to handle the &#8216;new&#8217; NFSv4 ACLs to avoid having to use getacl and setacl commands, but the commands in the default path might be the &#8216;old&#8217; non-NFSv4 ACL-capable commands, if you see what I mean.</p>
<p>I have recently installed OpenSolaris 2009.06 so I&#8217;ll try out these commands a little later tonight when I have time. If you&#8217;re in a hurry though, check to see if multiple (probably two)  versions of &#8216;ls&#8217; and &#8216;chmod&#8217; exist on your OpenSolaris system, and if so, run the commands found at the other location.</p>
<p>Cheers,<br />
Simon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fyleow</title>
		<link>http://breden.org.uk/2009/05/10/home-fileserver-zfs-file-systems/comment-page-1/#comment-9865</link>
		<dc:creator>fyleow</dc:creator>
		<pubDate>Mon, 15 Jun 2009 07:48:36 +0000</pubDate>
		<guid isPermaLink="false">http://breden.org.uk/?p=134#comment-9865</guid>
		<description>Simon,

Sorry if this is a dumb question but does your guide only work for Solaris 10 and not Open Solaris? I am trying some commands with Open Solaris 2009.06 and I&#039;m encountering issues.

The ls command doesn&#039;t have the -V option

$ touch test
$ ls -V test
ls: invalid option -- V
Try `ls --help&#039; for more information.

The chmod command doesn&#039;t seem to work.

/tank/media$ chmod A=\
&gt; owner@:rwxpdDaARWcCos:fd-----:allow,\
&gt; group@:rwxpdDaARWcCos:fd-----:allow,\
&gt; everyone@:rwxpdDaARWcCos:fd-----:deny \
&gt; /tank/home/media
chmod: invalid mode: `A=owner@:rwxpdDaARWcCos:fd-----:allow,group@:rwxpdDaARWcCos:fd-----:allow,everyone@:rwxpdDaARWcCos:fd-----:deny&#039;
Try `chmod --help&#039; for more information.

Additionally when I copy files over from my OS X machine over SMB I get some weird permissions. The files show up as ---------- permissions but I can still access them fine. This is a bit different from what I&#039;m used to because if a file had that permission on Linux it would not be readable even by the owner.</description>
		<content:encoded><![CDATA[<p>Simon,</p>
<p>Sorry if this is a dumb question but does your guide only work for Solaris 10 and not Open Solaris? I am trying some commands with Open Solaris 2009.06 and I&#8217;m encountering issues.</p>
<p>The ls command doesn&#8217;t have the -V option</p>
<p>$ touch test<br />
$ ls -V test<br />
ls: invalid option &#8212; V<br />
Try `ls &#8211;help&#8217; for more information.</p>
<p>The chmod command doesn&#8217;t seem to work.</p>
<p>/tank/media$ chmod A=\<br />
&gt; owner@:rwxpdDaARWcCos:fd&#8212;&#8211;:allow,\<br />
&gt; group@:rwxpdDaARWcCos:fd&#8212;&#8211;:allow,\<br />
&gt; everyone@:rwxpdDaARWcCos:fd&#8212;&#8211;:deny \<br />
&gt; /tank/home/media<br />
chmod: invalid mode: `A=owner@:rwxpdDaARWcCos:fd&#8212;&#8211;:allow,group@:rwxpdDaARWcCos:fd&#8212;&#8211;:allow,everyone@:rwxpdDaARWcCos:fd&#8212;&#8211;:deny&#8217;<br />
Try `chmod &#8211;help&#8217; for more information.</p>
<p>Additionally when I copy files over from my OS X machine over SMB I get some weird permissions. The files show up as &#8212;&#8212;&#8212;- permissions but I can still access them fine. This is a bit different from what I&#8217;m used to because if a file had that permission on Linux it would not be readable even by the owner.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://breden.org.uk/2009/05/10/home-fileserver-zfs-file-systems/comment-page-1/#comment-9524</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Tue, 09 Jun 2009 15:48:35 +0000</pubDate>
		<guid isPermaLink="false">http://breden.org.uk/?p=134#comment-9524</guid>
		<description>Hi Sebastian,

Thanks for the info relating to ACLs for making CIFS shares reliably accessible from Windows environments.

When I spend more time investigating access from Windows environments I will take your comments into account.

When I was researching the ACL subject a couple of months ago, I found a very useful forum comment written by an experienced Windows systems administrator, and this is what he said (abbreviated):

&lt;blockquote&gt;
Ok, as a long term windows admin, I&#039;m going to chip in with a couple of comments here.

Firstly, I should make clear that I think the CIFS team have done a cracking job with this. An OpenSolaris file server works pretty much exactly like a windows fileserver, which is a huge improvement over Samba.

We looked at Samba and found that it was completely unworkable in a Windows environment. OpenSolaris on the other hand allows us to keep our existing windows permissions and migrate them directly over.

Windows and Unix treat deny entries very differently. Personally, every time I set up a CIFS share, I grant rights to everybody and from that point on do all my permission setting from windows. From the top of my head, the syntax is something like:

&lt;pre&gt;
# chmod A=everyone@:full_set:fd /path
&lt;/pre&gt;

...

Yes, it gets complex if you&#039;re working with files both in Windows and Unix, but that&#039;s what the user mapping functionality is for.

...

On the contrary, standard permissions working just like a windows server, and managable with the windows tools is *exactly* what I expected. Yes, there&#039;s a bit of a learning curve to get OpenSolaris working, but I&#039;ve been a windows admin for many years now, and I&#039;m very, very impressed with this.

Ross
&lt;/blockquote&gt;


For more details, see the comment from myxiplx (Ross) @ Apr 9, 2009 5:27 AM here:
http://opensolaris.org/jive/message.jspa?messageID=365620#365620</description>
		<content:encoded><![CDATA[<p>Hi Sebastian,</p>
<p>Thanks for the info relating to ACLs for making CIFS shares reliably accessible from Windows environments.</p>
<p>When I spend more time investigating access from Windows environments I will take your comments into account.</p>
<p>When I was researching the ACL subject a couple of months ago, I found a very useful forum comment written by an experienced Windows systems administrator, and this is what he said (abbreviated):</p>
<blockquote><p>
Ok, as a long term windows admin, I&#8217;m going to chip in with a couple of comments here.</p>
<p>Firstly, I should make clear that I think the CIFS team have done a cracking job with this. An OpenSolaris file server works pretty much exactly like a windows fileserver, which is a huge improvement over Samba.</p>
<p>We looked at Samba and found that it was completely unworkable in a Windows environment. OpenSolaris on the other hand allows us to keep our existing windows permissions and migrate them directly over.</p>
<p>Windows and Unix treat deny entries very differently. Personally, every time I set up a CIFS share, I grant rights to everybody and from that point on do all my permission setting from windows. From the top of my head, the syntax is something like:</p>
<pre>
# chmod A=everyone@:full_set:fd /path
</pre>
<p>&#8230;</p>
<p>Yes, it gets complex if you&#8217;re working with files both in Windows and Unix, but that&#8217;s what the user mapping functionality is for.</p>
<p>&#8230;</p>
<p>On the contrary, standard permissions working just like a windows server, and managable with the windows tools is *exactly* what I expected. Yes, there&#8217;s a bit of a learning curve to get OpenSolaris working, but I&#8217;ve been a windows admin for many years now, and I&#8217;m very, very impressed with this.</p>
<p>Ross
</p></blockquote>
<p>For more details, see the comment from myxiplx (Ross) @ Apr 9, 2009 5:27 AM here:<br />
<a href="http://opensolaris.org/jive/message.jspa?messageID=365620#365620" rel="nofollow">http://opensolaris.org/jive/message.jspa?messageID=365620#365620</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastian</title>
		<link>http://breden.org.uk/2009/05/10/home-fileserver-zfs-file-systems/comment-page-1/#comment-9502</link>
		<dc:creator>Sebastian</dc:creator>
		<pubDate>Tue, 09 Jun 2009 08:42:01 +0000</pubDate>
		<guid isPermaLink="false">http://breden.org.uk/?p=134#comment-9502</guid>
		<description>Sorry, one more:

At least you shouldn&#039;t DENY (aRcs) for everyone@. It should work to leave these flags undefined in deny and allow for @everyone so later ACL entries can do the work... 
The last question would be how to finally deny these rights for unauthorized users?</description>
		<content:encoded><![CDATA[<p>Sorry, one more:</p>
<p>At least you shouldn&#8217;t DENY (aRcs) for everyone@. It should work to leave these flags undefined in deny and allow for @everyone so later ACL entries can do the work&#8230;<br />
The last question would be how to finally deny these rights for unauthorized users?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastian</title>
		<link>http://breden.org.uk/2009/05/10/home-fileserver-zfs-file-systems/comment-page-1/#comment-9501</link>
		<dc:creator>Sebastian</dc:creator>
		<pubDate>Tue, 09 Jun 2009 08:35:06 +0000</pubDate>
		<guid isPermaLink="false">http://breden.org.uk/?p=134#comment-9501</guid>
		<description>Simon,

I&#039;ve looked around a little bit in ACL docs and (hopefully) understand the reason for my above mentioned problems:

Windows ACL handling differs from ZFS: Windows first applies all DENY rules and only afterwards the ALLOW rules while ZFS handles ACLs in the given order. Thats the reason why you need to grant at least the above rights (aRcS) to everyone@ when using Windows clients.

Otherwise your access may be denied before your intended ALLOW comes into place.</description>
		<content:encoded><![CDATA[<p>Simon,</p>
<p>I&#8217;ve looked around a little bit in ACL docs and (hopefully) understand the reason for my above mentioned problems:</p>
<p>Windows ACL handling differs from ZFS: Windows first applies all DENY rules and only afterwards the ALLOW rules while ZFS handles ACLs in the given order. Thats the reason why you need to grant at least the above rights (aRcS) to everyone@ when using Windows clients.</p>
<p>Otherwise your access may be denied before your intended ALLOW comes into place.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastian</title>
		<link>http://breden.org.uk/2009/05/10/home-fileserver-zfs-file-systems/comment-page-1/#comment-9436</link>
		<dc:creator>Sebastian</dc:creator>
		<pubDate>Mon, 08 Jun 2009 15:59:07 +0000</pubDate>
		<guid isPermaLink="false">http://breden.org.uk/?p=134#comment-9436</guid>
		<description>Simon,

you may run in problems, when denying ALL rights for group everyone (chmod A=everyone@:full_set:fd:deny). We encountered repeated access problems while working on shares from XP clients. This results in write/application errors on the client side even when you are owner and have owner@:full_set:fd:allow permissions on file and directory.

Although I must admit that for the above reason I don&#039;t exactly understand why, we keep at least the following allowed to avoid these problems
everyone@:------a-R-c--s:-------:allow

Furthermore on 2008.11 we encountered strange ACL inheritance behaviour when setting ACL rights on server side via chmod. We ended in 
1. doing full_set allows for @owner/@group/@everyone on CIFS share
2. revoking (and afterwards setting) rights on client side

I found hints to do so here: http://www.aspdeveloper.net/tiki-index.php?page=SolarisCIFSPermissions
(Thank you &quot;steveradich&quot;!)</description>
		<content:encoded><![CDATA[<p>Simon,</p>
<p>you may run in problems, when denying ALL rights for group everyone (chmod A=everyone@:full_set:fd:deny). We encountered repeated access problems while working on shares from XP clients. This results in write/application errors on the client side even when you are owner and have owner@:full_set:fd:allow permissions on file and directory.</p>
<p>Although I must admit that for the above reason I don&#8217;t exactly understand why, we keep at least the following allowed to avoid these problems<br />
everyone@:&#8212;&#8212;a-R-c&#8211;s:&#8212;&#8212;-:allow</p>
<p>Furthermore on 2008.11 we encountered strange ACL inheritance behaviour when setting ACL rights on server side via chmod. We ended in<br />
1. doing full_set allows for @owner/@group/@everyone on CIFS share<br />
2. revoking (and afterwards setting) rights on client side</p>
<p>I found hints to do so here: <a href="http://www.aspdeveloper.net/tiki-index.php?page=SolarisCIFSPermissions" rel="nofollow">http://www.aspdeveloper.net/tiki-index.php?page=SolarisCIFSPermissions</a><br />
(Thank you &#8220;steveradich&#8221;!)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
