<p dir="auto">I followed the <a href="https://github.com/kubernetes/kubernetes/blob/master/docs/getting-started-guides/docker.md">local Docker getting started guide</a> on Ubuntu 15.10, and found myself experiencing a host of issues with /dev/pts, most notably being unable to start any terminal emulator, being greeted with</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="There was an error creating the child process for this terminal
getpt failed: No such file or directory"><pre class="notranslate"><code class="notranslate">There was an error creating the child process for this terminal
getpt failed: No such file or directory
</code></pre></div>
<p dir="auto">Stopping Kubernetes and rebooting consistently fixed the issue.</p>
<p dir="auto">It seems the likely culprit is the mounting of the entire /dev path as a volume in the container per the run command given in the instructions. Is this necessary? What is Kubernetes looking for that it needs in the host /dev? Perhaps it could be a more explicit mount?</p>
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.): no</p>
<p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.): azurefile azure_file 0777</p>
<hr>
<p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): FEATURE REQUEST</p>
<p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):<br>
Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.5", GitCommit:"5a0a696437ad35c133c0c8493f7e9d22b0f9b81b", GitTreeState:"clean", BuildDate:"2016-10-29T01:38:40Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}<br>
Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.5", GitCommit:"5a0a696437ad35c133c0c8493f7e9d22b0f9b81b", GitTreeState:"clean", BuildDate:"2016-10-29T01:32:42Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>: Microsoft Azure Container Service</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): Ubuntu 16.04 LTS</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): Linux 4.4.0-28-generic <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35424594" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/47" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/47/hovercard" href="https://github.com/kubernetes/kubernetes/pull/47">#47</a>-Ubuntu SMP Fri Jun 24 10:09:13 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux</li>
</ul>
<p dir="auto"><strong>What happened</strong>:<br>
I attempted to set up an Azure File Volume using the built-in volume type azureFile.  Everything works, except that the files and directories defaults to permission 0777, always.</p>
<p dir="auto">When I tried to manually mount within the container, I could customise dir_mode and file_mode, meaning that this change should be possible.  Reading the source code confirms it - dir_mode=0777 and file_mode=0777 seem hardcoded.</p>
<p dir="auto"><strong>What you expected to happen</strong>:<br>
Being able to supply dir_mode and file_mode to the mount. e.g.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: myvolume
  azureFile:
    secretName: supersecret
    shareName: myshare
    readOnly: false
    dirMode: 0400
    fileMode: 0400"><pre class="notranslate"><code class="notranslate">- name: myvolume
  azureFile:
    secretName: supersecret
    shareName: myshare
    readOnly: false
    dirMode: 0400
    fileMode: 0400
</code></pre></div>
<p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):<br>
N/A.  This is a feature request.</p>
<p dir="auto"><strong>Anything else do we need to know</strong>:<br>
N/A</p>