{"id":443,"date":"2013-02-19T16:04:59","date_gmt":"2013-02-19T21:04:59","guid":{"rendered":"http:\/\/rajdude.com\/blog\/?p=443"},"modified":"2013-06-14T15:08:23","modified_gmt":"2013-06-14T19:08:23","slug":"quick-and-dirty-nfs-share-on-windows-2008-r2","status":"publish","type":"post","link":"https:\/\/rajdude.com\/blog\/quick-and-dirty-nfs-share-on-windows-2008-r2\/","title":{"rendered":"Quick and dirty NFS share on Windows 2008 R2"},"content":{"rendered":"<p>I call it dirty because I allowed anonymous access to the NFS share. I tried the UID mapping thing but could not get it to work properly for multiple reasons. They had not enabled the NFS extensions in AD, so I could not use the AD authentication. The \u201cunmapped UNIX user access\u201d option worked only for giving access to the NFS share to only one Solaris server. Other Solaris servers could not write to the same share. Hence I broke down and enabled anonymous access.<\/p>\n<p>So here is how to create a quick NFS share for allowing your Solaris brothers to send data to your Windows world. <\/p>\n<p><!--more--><\/p>\n<p><u>On the Windows 2008 R2 Server do this:<\/u><\/p>\n<p>First , you gotta enable a policy in the local security policy:<\/p>\n<blockquote>\n<p>Network Access: Let Everyone permissions apply to anonymous users policy.<\/p>\n<\/blockquote>\n<p>Then install these server roles:<\/p>\n<ul>\n<li>File Server\n<li>Services for Network File System<\/li>\n<\/ul>\n<p>Now that you have NFS installed, you can create an anonymous NFS share. Here is&nbsp; how to do it:<\/p>\n<ol>\n<li>Inside server manager, expand \u201cFile Services\u201d and go to \u201cShare and Storage management\u201d.\n<li>Click Edit NFS Configuration on the right side.\n<li>On the left side, click on \u201cUse Services for NFS to Share Folders\u201c\n<li>Click on the button \u201cProvision a shared folder wizard\u201d\n<li>Go through the wizard\u2019s steps\u2026\n<li>Click on \u201cBrowse\u201d button and choose the folder you wanna share via NFS.\n<li>On the next page click on \u201cNo, do not change NTFS\u2026\u201d\n<li>On the \u201cShare Protocols\u201d page, choose NFS. If you wish, you can share via SMB simultaneously.\n<li>On the next page \u201cNFS Authentication\u201d choose \u201cAllow anonymous access\u201d and click on \u201cedit\u201d button.&nbsp;\n<li>Click on \u201cfull control\u201d. This will grant full control permissions to everyone group. Click Next.\n<li>Click Yes on the confirmation pop-up.\n<li>On the next page click \u201cAdd \u201c button and add only those Solaris machines\u2019 IP addresses which need to write to this share. This provides a little security. Make sure you change permissions to \u201cRead-Write\u201d and leave the \u201cAllow root access\u2026\u201d unchecked.\n<li>Click OK.\n<li>Add more machines.\n<li>When you have all your machines in there\u2026click \u201cNext\u201d\n<li>Click on \u201cCreate\u201d button and it will create the NFS share.\n<li>Click on \u201crefresh\u201d inside Share and Storage management to see the new NFS share you just created.\n<li>Nothing more needs to be done on Windows side.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><u>On each Solaris machine, do this:<\/u><\/p>\n<ol>\n<li>Change to root using the su command\n<li>create a directory \/mnt\/SolarisDBDumps\n<li>Mount your NFS share using the command:\n<li>mount servername.domain.com:SolarisDBdumps \/mnt\/SolarisDBdumps\n<li>The NFS share will be mounted as a nobody\/nobody rights . All users on the server can now write to it.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>I call it dirty because I allowed anonymous access to the NFS share. I tried the UID mapping thing but could not get it to work properly for multiple reasons. They had not enabled the NFS extensions in AD, so I could not use the AD authentication. The \u201cunmapped UNIX user access\u201d option worked only for giving access to the NFS share to only one Solaris server. Other Solaris servers could not write to the same share. Hence I broke down and enabled anonymous access. So here is how to create a quick NFS share for allowing your Solaris brothers to send data to your Windows world.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[71,72],"class_list":["post-443","post","type-post","status-publish","format-standard","hentry","category-itsys","tag-nfs","tag-windows-server-2008"],"_links":{"self":[{"href":"https:\/\/rajdude.com\/blog\/wp-json\/wp\/v2\/posts\/443","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rajdude.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rajdude.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rajdude.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rajdude.com\/blog\/wp-json\/wp\/v2\/comments?post=443"}],"version-history":[{"count":3,"href":"https:\/\/rajdude.com\/blog\/wp-json\/wp\/v2\/posts\/443\/revisions"}],"predecessor-version":[{"id":550,"href":"https:\/\/rajdude.com\/blog\/wp-json\/wp\/v2\/posts\/443\/revisions\/550"}],"wp:attachment":[{"href":"https:\/\/rajdude.com\/blog\/wp-json\/wp\/v2\/media?parent=443"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rajdude.com\/blog\/wp-json\/wp\/v2\/categories?post=443"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rajdude.com\/blog\/wp-json\/wp\/v2\/tags?post=443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}