Unable to Login (Ubuntu 11.10)

view full story

http://askubuntu.com – I'm having a weird issue. When I put my password using my account (ramiz) on the login screen of GUI, a blink of screen and it take me back to the login screen. I tried with Guest user and it is logging me in. I also tried Ctrl+ATL+F1 to switch to command mode and try to login there with sudo -s. And give my login id (ramiz) and password there it successfully logged me there in the command mode. I remember I ran few chmod/chown command which cause me this issue. Before this happened everytime I launch Terminal I got a error msg of permission denied which is something like "bash: XXXXX Permiss (HowTos)