So ... that would be why your file is empty. Can you type "date" or "whoami" at the terminal? Does uid 501 not have a name that whoami doesn't print?