title: permission denied in linux when creating a new user
body: <p>I am new in linux and I was trying to do some commands in terminal. My problem is that when I do su to another user, and I want to create a directory there, it shows me that permission is denied. Please, help me to understand why this happens and what can I do to solve it. </p>
  
  <pre><code>user@user_VB:~$ sudo su
  root@user_VB:~$ useradd user1 
  root@user_VB:~$ groupadd students
  root@user_VB:~$ usermod -g people user1
  root@user_VB:~$ su user1 
  user1@user_VB:~$ mkdir exams
  </code></pre>
  
  <p>Now it shows:</p>
  
  <blockquote>
    <p>permission denied.</p>
  </blockquote>
  
  <p>But if I type this: </p>
  
  <pre><code>user1@user_VB:~$ sudo mkdir exams 
  </code></pre>
  
  <p>It shows:</p>
  
  <blockquote>
    <p>user1 is not in suboers file.</p>
  </blockquote>