title: Deleting user from Ubuntu when the user is logged in
body: <p>I am working on Ubuntu 12.04 .Recently I downloaded Hadoop 2.0.3 and made  a user named <code>Hduser</code> which I added and give privileged rights. Now I want to delete the user.</p>
  
  <p>I used </p>
  
  <pre><code>sudo deluser hduser
  </code></pre>
  
  <p>But it's giving me the following error:</p>
  
  <blockquote>
    <p>Warning: group <code>hadoop' has no more members.  userdel: user hduser is 
    currently logged in /usr/sbin/deluser:</code>/usr/sbin/userdel hduser'</p>
    
    <p>returned error code 8. Exiting</p>
  </blockquote>