The greatest leaders in history were the ones who had the ability to command the respect of the people who followed them. This is something that they earned. It was not blindly given to them. One can be given authority by simply being in a position. However, no position can garner respect. It is the actions of the individual that lead to others providing it.
One of the most basic ways to gain the respect of those which you have authority is to be an example. Whatever you preach, be certain that you are living it. Management is not about issuing orders. It is about making decisions that are to the benefit of the organization. Sometimes, these decisions come in conflict with the troops. How these challenges are surmounted is partially contingent upon the respect the manager has from the personnel.
It seems that a lot of people in authority operate with the attitude do as I say, not as I do. This is a surefire way to instill resentment among those you are leading. They begin to question why should they do something that you are not willing to do. There is a lot of legitimacy to this. How can you expect someone else to do what you are not willing to do...