{"id":3079,"date":"2018-04-25T14:03:04","date_gmt":"2018-04-25T12:03:04","guid":{"rendered":"http:\/\/srvcnthpc001.uct.ac.za\/?p=3079"},"modified":"2018-04-25T14:10:59","modified_gmt":"2018-04-25T12:10:59","slug":"user-based-cifs-readwrite-mounts","status":"publish","type":"post","link":"https:\/\/ucthpc.uct.ac.za\/index.php\/2018\/04\/25\/user-based-cifs-readwrite-mounts\/","title":{"rendered":"User based CIFS read\\write mounts"},"content":{"rendered":"<p>First you need to ensure that setuid root is set on the CIFS mount executable:<\/p>\n<pre>chmod u+s \/sbin\/mount.cifs<\/pre>\n<p>In order for a user to mount a CIFS share it must be in the \/etc\/fstab file in the following format:<\/p>\n<pre>\/\/researchdata.uct.ac.za\/&lt;MYDISK&gt; \/researchdata\/&lt;MYDISK&gt; cifs user,user=wf\/&lt;UCTID&gt;,noauto,uid=&lt;LOCALUSER&gt;,gid=&lt;LOCALGROUP&gt;,iocharset=utf8,file_mode=&lt;FM&gt;,dir_mode=&lt;DM&gt;,noperm 0 0<\/pre>\n<p>Where MYDISK is the \/\/researchdata arcive disk name you were given, UCTID is your staff or student number, LOCALUSER and LOCALGROUP are the cluster user and group owners of this new mount point and FM and DM are the read, write execute permissions that wil be set up.<\/p>\n<p>For example:<\/p>\n<pre>\/\/researchdata.uct.ac.za\/StarData \/researchdata\/StarData cifs user,user=wf\/01234567,noauto,uid=501,gid=900,iocharset=utf8,file_mode=0750,dir_mode=0750,noperm 0 0<\/pre>\n<p>However in reality we will reference the Infiniband IP\u00a0 instead of the DNS name of \/\/researchdata archive. The user will then execute the following:<\/p>\n<pre>mount \/researchdata\/StarData<\/pre>\n<p>If the CIFS mount is not in \/etc\/fstab the user gets an error stating that they need to be root in order to mount a file system. This prevents users from mounting arbitrary file systems which would be a major security problem.<\/p>\n<p>We intend to add various mount points to our cluster nodes to allow users to mount \/\/researchdata archive storage directly on the HPC cluster, however this will only be done on request. The disks are not mounted automatically and by default users should assume that the mount points are not active and as part of their job should\u00a0manually\u00a0mount their \/\/researchdata disk. In order to minimize on the number of active mount points we will periodically umount \/researchdata disks on inactive nodes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>First you need to ensure that setuid root is set on the CIFS mount executable: chmod u+s \/sbin\/mount.cifs In order for a user to mount a CIFS share it must be in the \/etc\/fstab file in the following format: \/\/researchdata.uct.ac.za\/&lt;MYDISK&gt; \/researchdata\/&lt;MYDISK&gt; cifs user,user=wf\/&lt;UCTID&gt;,noauto,uid=&lt;LOCALUSER&gt;,gid=&lt;LOCALGROUP&gt;,iocharset=utf8,file_mode=&lt;FM&gt;,dir_mode=&lt;DM&gt;,noperm 0 0 Where MYDISK is the \/\/researchdata arcive disk name you were&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,26],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>User based CIFS read\\write mounts - UCT HPC<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ucthpc.uct.ac.za\/index.php\/2018\/04\/25\/user-based-cifs-readwrite-mounts\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"User based CIFS read\\write mounts - UCT HPC\" \/>\n<meta property=\"og:description\" content=\"First you need to ensure that setuid root is set on the CIFS mount executable: chmod u+s \/sbin\/mount.cifs In order for a user to mount a CIFS share it must be in the \/etc\/fstab file in the following format: \/\/researchdata.uct.ac.za\/&lt;MYDISK&gt; \/researchdata\/&lt;MYDISK&gt; cifs user,user=wf\/&lt;UCTID&gt;,noauto,uid=&lt;LOCALUSER&gt;,gid=&lt;LOCALGROUP&gt;,iocharset=utf8,file_mode=&lt;FM&gt;,dir_mode=&lt;DM&gt;,noperm 0 0 Where MYDISK is the \/\/researchdata arcive disk name you were...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ucthpc.uct.ac.za\/index.php\/2018\/04\/25\/user-based-cifs-readwrite-mounts\/\" \/>\n<meta property=\"og:site_name\" content=\"UCT HPC\" \/>\n<meta property=\"article:published_time\" content=\"2018-04-25T12:03:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-04-25T12:10:59+00:00\" \/>\n<meta name=\"author\" content=\"Andrew Lewis\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Andrew Lewis\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/index.php\/2018\/04\/25\/user-based-cifs-readwrite-mounts\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/ucthpc.uct.ac.za\/index.php\/2018\/04\/25\/user-based-cifs-readwrite-mounts\/\"},\"author\":{\"name\":\"Andrew Lewis\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#\/schema\/person\/c183ad1c0a1063124a72d63963ae9c7e\"},\"headline\":\"User based CIFS read\\\\write mounts\",\"datePublished\":\"2018-04-25T12:03:04+00:00\",\"dateModified\":\"2018-04-25T12:10:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ucthpc.uct.ac.za\/index.php\/2018\/04\/25\/user-based-cifs-readwrite-mounts\/\"},\"wordCount\":243,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#organization\"},\"articleSection\":[\"hpc\",\"storage\"],\"inLanguage\":\"en-ZA\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/ucthpc.uct.ac.za\/index.php\/2018\/04\/25\/user-based-cifs-readwrite-mounts\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/index.php\/2018\/04\/25\/user-based-cifs-readwrite-mounts\/\",\"url\":\"https:\/\/ucthpc.uct.ac.za\/index.php\/2018\/04\/25\/user-based-cifs-readwrite-mounts\/\",\"name\":\"User based CIFS read\\\\write mounts - UCT HPC\",\"isPartOf\":{\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#website\"},\"datePublished\":\"2018-04-25T12:03:04+00:00\",\"dateModified\":\"2018-04-25T12:10:59+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/ucthpc.uct.ac.za\/index.php\/2018\/04\/25\/user-based-cifs-readwrite-mounts\/#breadcrumb\"},\"inLanguage\":\"en-ZA\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ucthpc.uct.ac.za\/index.php\/2018\/04\/25\/user-based-cifs-readwrite-mounts\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/index.php\/2018\/04\/25\/user-based-cifs-readwrite-mounts\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ucthpc.uct.ac.za\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"User based CIFS read\\\\write mounts\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#website\",\"url\":\"https:\/\/ucthpc.uct.ac.za\/\",\"name\":\"UCT HPC\",\"description\":\"University of Cape Town High Performance Computing\",\"publisher\":{\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ucthpc.uct.ac.za\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-ZA\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#organization\",\"name\":\"University of Cape Town High Performance Computing\",\"url\":\"https:\/\/ucthpc.uct.ac.za\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-ZA\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/09\/logocircless.png\",\"contentUrl\":\"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/09\/logocircless.png\",\"width\":450,\"height\":423,\"caption\":\"University of Cape Town High Performance Computing\"},\"image\":{\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#\/schema\/person\/c183ad1c0a1063124a72d63963ae9c7e\",\"name\":\"Andrew Lewis\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-ZA\",\"@id\":\"https:\/\/ucthpc.uct.ac.za\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9652c9c73beeab594b8dc2383a880048?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9652c9c73beeab594b8dc2383a880048?s=96&d=mm&r=g\",\"caption\":\"Andrew Lewis\"},\"sameAs\":[\"http:\/\/blogs.uct.ac.za\/blog\/big-bytes\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"User based CIFS read\\write mounts - UCT HPC","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ucthpc.uct.ac.za\/index.php\/2018\/04\/25\/user-based-cifs-readwrite-mounts\/","og_locale":"en_US","og_type":"article","og_title":"User based CIFS read\\write mounts - UCT HPC","og_description":"First you need to ensure that setuid root is set on the CIFS mount executable: chmod u+s \/sbin\/mount.cifs In order for a user to mount a CIFS share it must be in the \/etc\/fstab file in the following format: \/\/researchdata.uct.ac.za\/&lt;MYDISK&gt; \/researchdata\/&lt;MYDISK&gt; cifs user,user=wf\/&lt;UCTID&gt;,noauto,uid=&lt;LOCALUSER&gt;,gid=&lt;LOCALGROUP&gt;,iocharset=utf8,file_mode=&lt;FM&gt;,dir_mode=&lt;DM&gt;,noperm 0 0 Where MYDISK is the \/\/researchdata arcive disk name you were...","og_url":"https:\/\/ucthpc.uct.ac.za\/index.php\/2018\/04\/25\/user-based-cifs-readwrite-mounts\/","og_site_name":"UCT HPC","article_published_time":"2018-04-25T12:03:04+00:00","article_modified_time":"2018-04-25T12:10:59+00:00","author":"Andrew Lewis","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Andrew Lewis","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ucthpc.uct.ac.za\/index.php\/2018\/04\/25\/user-based-cifs-readwrite-mounts\/#article","isPartOf":{"@id":"https:\/\/ucthpc.uct.ac.za\/index.php\/2018\/04\/25\/user-based-cifs-readwrite-mounts\/"},"author":{"name":"Andrew Lewis","@id":"https:\/\/ucthpc.uct.ac.za\/#\/schema\/person\/c183ad1c0a1063124a72d63963ae9c7e"},"headline":"User based CIFS read\\write mounts","datePublished":"2018-04-25T12:03:04+00:00","dateModified":"2018-04-25T12:10:59+00:00","mainEntityOfPage":{"@id":"https:\/\/ucthpc.uct.ac.za\/index.php\/2018\/04\/25\/user-based-cifs-readwrite-mounts\/"},"wordCount":243,"commentCount":0,"publisher":{"@id":"https:\/\/ucthpc.uct.ac.za\/#organization"},"articleSection":["hpc","storage"],"inLanguage":"en-ZA","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ucthpc.uct.ac.za\/index.php\/2018\/04\/25\/user-based-cifs-readwrite-mounts\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ucthpc.uct.ac.za\/index.php\/2018\/04\/25\/user-based-cifs-readwrite-mounts\/","url":"https:\/\/ucthpc.uct.ac.za\/index.php\/2018\/04\/25\/user-based-cifs-readwrite-mounts\/","name":"User based CIFS read\\write mounts - UCT HPC","isPartOf":{"@id":"https:\/\/ucthpc.uct.ac.za\/#website"},"datePublished":"2018-04-25T12:03:04+00:00","dateModified":"2018-04-25T12:10:59+00:00","breadcrumb":{"@id":"https:\/\/ucthpc.uct.ac.za\/index.php\/2018\/04\/25\/user-based-cifs-readwrite-mounts\/#breadcrumb"},"inLanguage":"en-ZA","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ucthpc.uct.ac.za\/index.php\/2018\/04\/25\/user-based-cifs-readwrite-mounts\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ucthpc.uct.ac.za\/index.php\/2018\/04\/25\/user-based-cifs-readwrite-mounts\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ucthpc.uct.ac.za\/"},{"@type":"ListItem","position":2,"name":"User based CIFS read\\write mounts"}]},{"@type":"WebSite","@id":"https:\/\/ucthpc.uct.ac.za\/#website","url":"https:\/\/ucthpc.uct.ac.za\/","name":"UCT HPC","description":"University of Cape Town High Performance Computing","publisher":{"@id":"https:\/\/ucthpc.uct.ac.za\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ucthpc.uct.ac.za\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-ZA"},{"@type":"Organization","@id":"https:\/\/ucthpc.uct.ac.za\/#organization","name":"University of Cape Town High Performance Computing","url":"https:\/\/ucthpc.uct.ac.za\/","logo":{"@type":"ImageObject","inLanguage":"en-ZA","@id":"https:\/\/ucthpc.uct.ac.za\/#\/schema\/logo\/image\/","url":"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/09\/logocircless.png","contentUrl":"https:\/\/ucthpc.uct.ac.za\/wp-content\/uploads\/2015\/09\/logocircless.png","width":450,"height":423,"caption":"University of Cape Town High Performance Computing"},"image":{"@id":"https:\/\/ucthpc.uct.ac.za\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/ucthpc.uct.ac.za\/#\/schema\/person\/c183ad1c0a1063124a72d63963ae9c7e","name":"Andrew Lewis","image":{"@type":"ImageObject","inLanguage":"en-ZA","@id":"https:\/\/ucthpc.uct.ac.za\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9652c9c73beeab594b8dc2383a880048?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9652c9c73beeab594b8dc2383a880048?s=96&d=mm&r=g","caption":"Andrew Lewis"},"sameAs":["http:\/\/blogs.uct.ac.za\/blog\/big-bytes"]}]}},"_links":{"self":[{"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/posts\/3079"}],"collection":[{"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/comments?post=3079"}],"version-history":[{"count":4,"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/posts\/3079\/revisions"}],"predecessor-version":[{"id":3083,"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/posts\/3079\/revisions\/3083"}],"wp:attachment":[{"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/media?parent=3079"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/categories?post=3079"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ucthpc.uct.ac.za\/index.php\/wp-json\/wp\/v2\/tags?post=3079"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}