Liking and respecting a teacher are very different things
Maybe it's just me, but I don't find it that hard to have the students like you. If you're a genuinely nice person, the kids will obviously pick up on it.
Now, the tricky part is getting the kids to respect you. You can be the nicest person in the world, but if you can't manage and control your class well, the kids will take you for an idiot. They may well still like you, but they won't respect you properly and that lack of respect will feel like they don't like you. It's the same dynamic as being a boss and dealing with your subordinates. Being nice will get you so far, but you do need to know what you're doing.
As a teacher or a boss, don't fall into that trap of thinking that you need to lay down the law unfairly and assert yourself in order to get respect - you won't. Students and adults will pretend to respect you, but deep down you'll know they don't; and that will just fester inside and bring out the ugly sides of your personality (similar to small-man syndrome, but respect can be earned if you apply yourself honestly)
If you don't have what it takes to be a good teacher or boss, that's okay. Find something else to do. Just don't stick with it and become an arrogant asshole whose ego is actually just detrimental to your school or business' performance. Know your limits.
Oh, if you're a P6 or M1 teacher, you have my sympathy. They're just at that age where they really can be little shits!
Craig