title: nginx cookbook throws usermod error
body: <p>I have been involved in spinning up an nginx server using chef. I use berkshelf to manage the dependencies of site cookbooks. Whenever I try to run the recipe "nginx" (<a href="http://community.opscode.com/cookbooks/nginx" rel="nofollow">http://community.opscode.com/cookbooks/nginx</a>) , Chef throws an exception </p>
  
  <blockquote>
    <p>usermod -s '/bin/false' -d '/var/www' nginx returned 8, expected 0</p>
  </blockquote>
  
  <p>stating that </p>
  
  <blockquote>
    <p>usermod: user nginx is currently logged in</p>
  </blockquote>
  
  <p>I believe that being run as <strong>root</strong> user, there shouldn't be any problem creating an  <em>nginx user</em> but how to usermod on the created nginx user while running a recipe?</p>