title: sdk: command not found
body: <p>I have installed SDKMAN! as root on my server and want all my users (developers) to have access to it.</p>
  
  <p>For that I did:</p>
  
  <pre><code>export SDKMAN_DIR="/usr/local/sdkman" &amp;&amp; curl -s "https://get.sdkman.io" | bash
  source "/usr/local/sdkman/bin/sdkman-init.sh"
  </code></pre>
  
  <p>Then for a user, I added these lines at the end of .profile and .bashrc:</p>
  
  <pre><code>#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
  export SDKMAN_DIR="/usr/local/sdkman"
  [[ -s "/usr/local/sdkman/bin/sdkman-init.sh" ]] &amp;&amp; source "/usr/local/sdkman/bin/sdkman-init.sh"
  </code></pre>
  
  <p>From that user (non root), the sdk command works, but when I try to install Java, I get a lot of errors for folders and files permissions, that's OK because most of those where created by root, not by my current user.</p>
  
  <p>Then I try:</p>
  
  <pre><code>sudo sdk install java 9.0.4-open
  </code></pre>
  
  <p>And got:</p>
  
  <pre><code>sudo: sdk: command not found
  </code></pre>
  
  <p>Not sure what I'm doing wrong, maybe I need to install SDKMAN! for each user on my server, which would be a pain.</p>
  
  <p>Any suggestions?</p>