Problem: In most cases, when users log in to the Unix shell for the first time, their home directory is created automatically. In HP-UX, however, does not support directory creation during user login, so it does not recognize the newly-created home directory as a valid directory to use and the initial login fails.
Resolution: After this initial failure, as long as the home directory has been created successfully and can be accessed at the next login attempt, and the next login succeeds.
Therefore, when a user logs on to HP-UX for the first time and does not already have a home directory defined, the HP Display Manager session will fail and only a xterm window will be displayed but logging in a second time will successfully start the user session.