Use ENV['USER'] to get the username.
Use ENV['USER'] to get the username.

ENV['USER'] is set properly when we're run with su -; using
Etc.getlogin gets the username associated with our uid, not our
_effective_ uid; if eysd is run with su -, Etc.getlogin will still
return 'root'.

[#142]

engineyard/engineyard-serverside,engineyard/engineyard-serverside,engineyard/engineyard-serverside,engineyard/engineyard-serverside