OK, call me silly, but i've accidentally deleted a 'passwd' file while i was in /etc. Thinking that it was another passwd file which i extracted from another host that I wanted to crack, i deleted my own. What i did was boot up my older RH 7.2 on another partition and copied my old /etc/passwd file to it. I'm not sure how it worked out, but i managed to log back on to my RH 8.0. I expected my older password to be used, but instead, it was my orignal RH 8.0 password that was used. I'm thinking that it had to do with the file being shadowed. OK so that's all good.
My problem now, is that I have lots of extra lines in my current /etc/passwd that I don't need. And now my other logins dont work anymore, only root works. Is it safe to simply delete these lines that I don't need? Or is there any way i can re-generate a passwd file that is appropriate for my current setup? I need to do this without using the User and Groups GUI as my RH 8.0 GUI is full of bugs.
My problem now, is that I have lots of extra lines in my current /etc/passwd that I don't need. And now my other logins dont work anymore, only root works. Is it safe to simply delete these lines that I don't need? Or is there any way i can re-generate a passwd file that is appropriate for my current setup? I need to do this without using the User and Groups GUI as my RH 8.0 GUI is full of bugs.