I know this is an old post but you also have command
to fix group probs
2) hopefully the lines you deleted are not ones that you actually need?
can you remember what they were?
it should be safe to post your current passwd file....but do not post your shadow....if you are still having issues