{"id":38,"date":"2010-03-17T19:37:37","date_gmt":"2010-03-18T02:37:37","guid":{"rendered":"http:\/\/porkrind.org\/missives2\/?p=38"},"modified":"2013-05-30T01:45:57","modified_gmt":"2013-05-30T08:45:57","slug":"how-to-get-fsaclctl-off-your-leopard-install-dvd","status":"publish","type":"post","link":"https:\/\/porkrind.org\/missives\/how-to-get-fsaclctl-off-your-leopard-install-dvd\/","title":{"rendered":"How to get fsaclctl off your Leopard install DVD"},"content":{"rendered":"<p>Leopard came with a program called <tt>fsaclctl<\/tt> that let you turn on and off ACL control for a filesystem. For some reason they stopped shipping it in Snow Leopard and so if you&#8217;ve upgraded the file has been deleted from your disk.<\/p>\n<p>Well, I couldn&#8217;t find anyone that had an Intel 10.5 install (well, couldn&#8217;t find anyone quickly&#8211;I&#8217;m impatient) and so I stuck in the 10.5 install DVD that came with my computer to see if I could extract it from there. I was able to do&#8211;here&#8217;s how:<\/p>\n<p>First, get into Terminal and go to where the package all hang out:<\/p>\n<pre>\ncd \"\/Volumes\/Mac OS X Install Disc 1\/System\/Installation\/Packages\"\n<\/pre>\n<p>Then look for a likely candidate. I tried ACL.pkg first but it wasn&#8217;t there and then I tried &#8220;BaseSystem.pkg&#8221; but it wasn&#8217;t there either. Finally I found it in &#8220;BSD.pkg&#8221;.<\/p>\n<p>Ok, so what are these <tt>.pkg<\/tt> files? They are <em>not<\/em> normal installer .pkg files. Turns out they are &#8220;xar&#8221; files. Some weird package format Apple invented so they could put crazy meta data in the header or something. Anyway, xar is installed by default (at least on my 10.6 machine) so you just have to extract it:<\/p>\n<pre>\nmkdir \/tmp\/bsd\nxar -xzf BSD.pkg -C \/tmp\/bsd\n<\/pre>\n<p>That runs for a minute and leaves 5 or so files in <tt>\/tmp\/bsd<\/tt>:<\/p>\n<pre>\nBom\nPackageInfo\nPayload\nScripts\n<\/pre>\n<p>The &#8220;Bom&#8221; file (Bill of Materials) is the first thing we are interested in. Use &#8220;<tt>lsbom<\/tt>&#8221; to check it out:<\/p>\n<pre>\nlsbom \/tmp\/bsd\/Bom | grep fsaclctl\n<\/pre>\n<p>Success! This is where it&#8217;s at. So all that&#8217;s left is extracting it. One of the other files in there is called &#8220;Payload&#8221; and is just a tar file. Extracting is easy:<\/p>\n<pre>\ntar xf \/tmp\/bsd\/Payload -C \/tmp\/bsd\/ *fsacl*\n<\/pre>\n<p>Now if you check the <tt>\/tmp\/bsd<\/tt> directory you will see that <tt>tar<\/tt> has extracted the stuff to &#8220;usr&#8221;.<\/p>\n<pre>\nfind \/tmp\/bsd\/usr\n<\/pre>\n<p>&#8230;will produce:<\/p>\n<pre>\n\/tmp\/bsd\/usr\n\/tmp\/bsd\/usr\/sbin\n\/tmp\/bsd\/usr\/sbin\/fsaclctl\n\/tmp\/bsd\/usr\/share\n\/tmp\/bsd\/usr\/share\/man\n\/tmp\/bsd\/usr\/share\/man\/man1\n\/tmp\/bsd\/usr\/share\/man\/man1\/fsaclctl.1\n<\/pre>\n<p>Yay!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Leopard came with a program called <tt>fsaclctl<\/tt> that let you turn on and off ACL control for a filesystem. Here&#8217;s how to get it off your Leopard (10.5) install DVD.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10],"tags":[],"class_list":["post-38","post","type-post","status-publish","format-standard","hentry","category-sysadmin"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/posts\/38","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/comments?post=38"}],"version-history":[{"count":5,"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/posts\/38\/revisions"}],"predecessor-version":[{"id":503,"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/posts\/38\/revisions\/503"}],"wp:attachment":[{"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/media?parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/categories?post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/porkrind.org\/missives\/wp-json\/wp\/v2\/tags?post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}