Hi guys and girls,
I clicked the "Has this been asked" button above and found a few threads, even Googled with no real solution to this. So I thought I would make this post, apologies if it has been answered and I've missed it.
OK, well recently I installed RedHat Advanced Server, everything went pretty smooth, didnt even have to configure my internet connection. I created 1 user 'richard' (for myself), and this user could login with no problems. Anyway the drama started to unravel itself when I went to try and install Java 1.4.2. Had no problems installing the binary itself but then I found when I installed Eclipse I was getting complaints that I had wrong java version (java -version diaplyed 1.3). I asked a friend and he said I probably hadn't added it to my PATH in the bashrc file, and along the way he even suggested I configure my sudoers file so I could run commands in root without having to be logged in as root.
Anyway to cut a long story short I added richard to the user specifcation in the etc/sudoers....
root, richard ALL=(ALL) ALL
And then went to etc/bashrc (which I later find out was the wrong bashrc to got to), opened it up got scared and closed it...
Getting frustrated I Shutdown my computer and go to login as richard as per usual at the GUI login. All seems fine, GNOME is just about to start then the screen flashes and Im back at the login screen. So I try to login as root, and it works. I then su richard, and sure enough user richard cant even run commands..
Whats going on?
Thanks in advance