Description of problem:when the script login is executed the var $HOME and $USER are empty. Version-Release number of selected component (if applicable): How reproducible:run a script in /etc/lxdm/PreLogin with the content: echo $USER $HOME, directing the output for a file. Steps to Reproduce: 1. 2. 3. Actual results:$HOME and $USER are empty Expected results: $HOME has path to the home directory of the user that was authenticated $USER has the name of the user that was authenticated Additional info:
PreLogin is run *before* login and not in the users context. The variables you are talking about are set later, so what you expect is not supposed to work.
(In reply to comment #1) > PreLogin is run *before* login and not in the users context. The variables you > are talking about are set later, so what you expect is not supposed to work. There's a way to make a home directory or set somethings when some user login? Like I do in gdm whith /etc/gdm/PostLogin