> the gdm window will always kick me out even if I chose > the fail-safe option. that's not good. > from /var/log/messages, I can see: > May 21 22:35:24 stag gdm(pam_unix)[1158]: session opened for user ywangz by (uid=0) > May 21 22:35:24 stag gdm[1158]: gdm_slave_session_start: ywangz on :0 > May 21 22:35:29 stag gdm(pam_unix)[1158]: session closed for user ywangz > May 21 22:35:29 stag gdm[1158]: gdm_auth_user_remove: /home/ywangz is not owned by uid 0. > May 21 22:35:29 stag gdm[1158]: gdm_auth_user_remove: Ignoring suspiciously > looking cookie file /home/ywangz/.Xauthority > If I switch to xdm whose pam config is the same as above, I could log in > successfully using fvwm, so I am really confused. what am I missing, > with gdm or pam? Well if xdm works then it almost definately isn't a pam problem. The error messages were also coming from gdm rather than pam, so it would be a safe bet that this is a problem with gdm or your gdm configuration.