じゃあこれどう?

getent passwd `id -u` | (IFS=: read user other; echo $user)


まあ、id -unが使えれば一発なんだが、Solarisだと使えないし。