{"id":86,"date":"2008-08-29T11:06:20","date_gmt":"2008-08-29T16:06:20","guid":{"rendered":"http:\/\/yourlinuxguy.com\/?page_id=86"},"modified":"2009-03-11T21:38:31","modified_gmt":"2009-03-12T02:38:31","slug":"trustee-db-export","status":"publish","type":"page","link":"https:\/\/yourLinuxGuy.com\/?page_id=86","title":{"rendered":"Trustee DB Export (beta)"},"content":{"rendered":"<form action=\"https:\/\/yourLinuxGuy.com\/cgi-bin\/dbConvert.cgi\" enctype=\"multipart\/form-data\" method=\"post\">Welcome to the Trustee Database Convert page. For details about what this utility does, or for help with it, please see the README. (The README text is temporarily pasted below the input fields for now&#8230;)<\/p>\n<p>Step 1: Enter your Volume Name without the traditional NCP-style colon (e.g. VOL1). The volume name is for the results output only, no validation is performed.<\/p>\n<p>NCP Volume Name:<\/p>\n<p><input name=\"volId\" type=\"text\" value=\"VOL2\" \/><\/p>\n<p>Step 2: Browse to your Trustee Database File. It <span style=\"color: red;\">*must*<\/span> be named &#8220;.trustee_database.xml&#8221; (note the leading dot, and without the quotes!), and is limited to 256K in size max (the script will not even upload anything over that). For larger files, please contact me.<\/p>\n<p>Trustee DB file:<\/p>\n<p><input name=\"dbFile\" type=\"file\" value=\"[.trustee_database.xml]\" \/> <input name=\"modifier\" type=\"hidden\" value=\"send\" \/><\/p>\n<p>Step 3: Click here to launch:<\/p>\n<p><input type=\"submit\" value=\"Parse and Display Result\" \/> <\/form>\n<p><span style=\"color: grey;\"><br \/>\nContents of README:<\/span><\/p>\n<p><span style=\"color: grey;\">&#8211; &#8220;What does it do?&#8221; &#8211; This utility parses the .trustee_database.xml that you submit, and generates an output that contains all you need to create a script to re-import all those assignments. This is helpful if you have an NCP-only (non-NSS) volume and are basically left out in the cold as far as having utilities available to you for backup\/export\/migration of trustee assignments. Oh sure, if you have NSS, you have a whole shed full of tools, but if you don&#8217;t have NSS, you just get &#8220;ncpcon&#8221;. And I&#8217;m glad for that, but there was no automation tool&#8230; &#8230;until now&#8230;<\/span><\/p>\n<p><span style=\"color: grey;\">&#8211; &#8220;What is beta?&#8221; &#8211; It means that you are lucky if it works. Actually it seems to work quite well with a few known oddities&#8230; So I guess beta really means that I make no promises&#8230;<\/span><\/p>\n<p><span style=\"color: grey;\">&#8211; &#8220;NCP or NSS?&#8221; &#8211; It works with both NSS\/NCP volumes *and* NCP-only (non-nss) volumes, because NSS trustee assignments can go through ncpcon too. By &#8220;NCP-only&#8221;, I mean a volume that was created on top of a standard Linux filesystem, like ext3 or Reiser.<\/span><\/p>\n<p><span style=\"color: grey;\">&#8211; &#8220;Result output text-wrap?&#8221; &#8211; Be careful to notice if the result lines wrap around in the html text! If they are wrapped, they *might* not paste into your script as one line, and in that case the individual command will fail.<\/span><\/p>\n<p><span style=\"color: grey;\">&#8211; &#8220;Case sensitive?&#8221; &#8211; The volume name you enter is not case-sensitive. Even though this is Linux-related, the NCP engine that we are calling does not care about the case. Just make sure there is no colon after the name!<\/span><\/p>\n<p><span style=\"color: grey;\">&#8211; &#8220;Privacy?&#8221; &#8211; This utility does not store your trustee database file anywhere except in memory for the duration of the execution. Seriously, I don&#8217;t want your trustees file, and I don&#8217;t want someone else to get it either. I can&#8217;t really prove it to you, so you&#8217;ll have to take my word for it. If you don&#8217;t want to take my word for it, don&#8217;t use the utility. And I&#8217;m not sure anyone really cares if cn=sue.ou=marketing.o=corp has RF to USERS:tom&#8230; oh wait, that *does* sound kinda juicy&#8230;.<\/span><\/p>\n<p><span style=\"color: grey;\">&#8211; &#8220;Utility won&#8217;t work?&#8221; &#8211; If get errors, or your .trustee_database.xml is too large, or you just don&#8217;t want to use the web interface for any reason, contact me and send the file to me and I&#8217;ll convert it off-line. By the way, with some errors, you&#8217;ll get a message output (like bad filename), and with others you get re-directed to the base cgi script (like file too big)&#8230; Beta, folks&#8230;<\/span><\/p>\n<p><span style=\"color: grey;\">&#8211; &#8220;Script won&#8217;t work?&#8221; &#8211; If you pasted the output results into a script and your script won&#8217;t execute, remember that you need to change the Linux file type to executable (chmod +x scriptname), and to run it, you need to give it the path to where it is (try .\/scriptname).<\/span><\/p>\n<p><span style=\"color: grey;\">&#8211; &#8220;Why did you make this utility?&#8221; &#8211; For the whole sordid story, and why you might want to use it to save yourself, see this blog post: <a href=\"http:\/\/yourlinuxguy.com\/?p=75\">http:\/\/yourlinuxguy.com\/?p=75<\/a><\/span><\/p>\n<p><span style=\"color: grey;\">&#8211; &#8220;Where is my Trustee DB?&#8221; &#8211; The trustee db can be found at \/yourVolumeRoot\/._NETWARE\/.trustee_database.xml. If your volume is NCP-only (non-NSS), then yourVolumeRoot is whatever you set it to (like \/vol2). If your volume is NSS, then yourVolumeRoot is likely \/media\/nss\/volumeName. <\/span><\/p>\n<p><span style=\"color: grey;\">&#8211; &#8220;How do I get the trustee db from my server?&#8221; &#8211; Well, that&#8217;s up to you. There are myriad ways. You could even access my blog and this utility right from your server console, though I encourage you to have a copy of your trustee db offline anyway, and you could use that.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Welcome to the Trustee Database Convert page. For details about what this utility does, or for help with it, please see the README. (The README text is temporarily pasted below the input fields for now&#8230;) Step 1: Enter your Volume&#8230;<br \/><a class=\"read-more-button\" href=\"https:\/\/yourLinuxGuy.com\/?page_id=86\">Read more<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"parent":0,"menu_order":6,"comment_status":"open","ping_status":"open","template":"","meta":{"jetpack_post_was_ever_published":false,"footnotes":""},"class_list":["post-86","page","type-page","status-publish","hentry"],"jetpack_shortlink":"https:\/\/wp.me\/Pnjn1-1o","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/pages\/86","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=86"}],"version-history":[{"count":32,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/pages\/86\/revisions"}],"predecessor-version":[{"id":88,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/pages\/86\/revisions\/88"}],"wp:attachment":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=86"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}