Some of my sweetest chickens are roosters. I have one that I call Dude (The Big Lebowski) that will follow me wherever I go. If I check the mail, Dude will walk to the mailbox and back with me. I have others that will come up to me and brush against my legs like a cat. I have some massive roosters that are very protective of their hens and will defend them from everything except people, they won't interfere if someone is handling a hen.
They went through a phase where they tried to assert dominance over everyone but I spent time training them. When they were little I could walk in the coops with shorts on but had to stop while I was training them because they'd peck at my legs. Now they are calmed down and don't peck at me or anyone.
Roosters get a bad rap but they can be very nice birds. I know that I have roosters in the coops that will protect their flock against any intruder and frankly I've grown to really like them. I had planned on culling all but the best roos but after I trained them and spent time with them I decided I would rather keep them. I have way too many roosters for the number of hens I currently keep so I have a bunch of roos together and they get along great. Eventually I am going to grow the flock and let those roosters have hens of their own. What people forget is that roosters and chickens in general are still wild animals. We may keep them like we would keep other pets but there is a still a bit of wild in them and if you don't learn to work with their needs you will have some conflict. I am not saying that all bad roos can be trained but I think it is possible to minimize their bad traits if you are willing to work with them.
I could tell stories about some of my "bad" roos and how aggressive they were and how nice they are now. It just took training and learning what the rooster needs. One of my favorites is named Wy. Wy is a beautiful roo but he was mean for a while. He would grab any exposed flesh whenever he could, he'd sneak up from behind and grab your ankles. Wy was the reason I started wearing muck boots and jeans when I went in the coop. Most people would have culled him but genetically I think he is a great bird and I want him to breed. As soon as he started getting aggressive I started working with him on his attitude. It was a mix of handling him, never in an aggressive way, teaching him his name and using key words when he was being bad. It wasn't long and I could say "Wy!" and he would look at me. Then if he came at me I would say "No Wy" and brush him away. Eventually he would hear "No" and his name when he did something bad and he started to figure out he shouldn't do whatever he was doing. Now when I walk up to Wy he will just walk up to me and look me in the eyes but he doesn't try to assert any dominance. I also learned that Wy needed certain things and if you did them he would chill out. For example you must say hello to Wy in the morning and use his name or he will drop his wing and do the roo dance - no attack but he shows off - so every morning I open the coop and say "Hi Wy." Wy also like peanuts and gets very gentle if you hand feed them to him. It took a mix of little things but Wy went from a mean bird to one that I can pick up without wondering what he will do. The training may sound like a lot of work but it is just a few minutes at a time and I ended up with a great roo that is people friendly, protective of his hens and nice to have around. Any time I walk out to the coop Wy will run up and greet me.
BTW. Of my 63 birds, 30 are roosters. I walk into the coops with them at least 6 times a day and I can go all month without a single rooster trying to attack. Not every roo can be trained and may need rehomed or eaten but whenever possible I will try to save a roo. Economically it makes little sense because I feed these guys and tend to their needs without expecting them to be dinner but I accept them because they are really nice birds. It seems the hens are the ones that can be mean for no real reason. I have a few that are mean to each other and a few that'll get testy with me (broody) and while that happens my roos are just hanging out or coming to me for attention. I do have a couple hens that are very very sweet though. One of them is sitting by me right now as I write this.