title: Pick Up curent user in bash on a mac when running as a login hook
body: <p>My Script currently takes the first user returned from "users" and in testing it worked fine but once i turned it into a login hook it couldn't pickup the user properly.</p>
  
  <p>Is there a way to pickup the user that is logging in?</p>
  
  <p>Using $USER doesnt work either</p>
  
  <p>Ive tried using "/usr/bin/logname" to get the username and that only returns "root"</p>