In a bash session, the correct set of environment variables can be set.
But a native OS session cannot (for example, a DOS session on Windows).
Can you start your aptana from a session that before setting the correct value for USER?
If it still does not work (for example, this thread ), try also setting the correct value for $HOME.