»
Member icons
HP moderator
Expert in this area
Member status
ITRC Pro
250 points
ITRC Graduate
500 points
ITRC Wizard
1000 points
ITRC Royalty
2500 points
ITRC Pharaoh
7500 points
Olympian
20000 points
1-Star Olympian
40000 points
2-Star Olympian
80000 points
»
How to earn points
»
Support forums FAQs
Question status
Magical answer
Message with a response that solved the author's question
Favorites status
Add to my favorites
Delete from my favorites
Thread closed
christian_derek
Hi,
We are using pam to validate the user access to the system and if it succeed we launch a process on the hpux. The $HOME variable is not set, what should we do to solve the issue.
thanks,
Note: If you are the author of this question and wish to assign points to any of the answers, please login first.For more information on assigning points ,click
here
Sort Answers By:
Date or Points
Horia Chirculescu
Nov 4, 2009 08:41:54 GMT
Unassigned
Hello, The $HOME variable is set by the login process. If you do not have a login session, this variable would not be set. Other possibility is that the process spanned from the shell can not read correctly the above variable. Best regards Horia.
Matti Kurkela
Nov 4, 2009 10:14:09 GMT
Unassigned
If you're writing a custom PAM module or other binaries, use the standard getpwnam() or getpwuid() functions to look up the home directory. (use the "man getpwnam" command to get more information) After that, you can set the HOME variable yourself if you need it. If you're writing a script, use the "pwget" command to get similar functionality. ("man pwget") For example: HOME=$(pwget -n username | cut -d : -f 6) MK