Does the fourth commandment oblige us to respect and to obey others besides our parents? Besides our parents, the fourth commandment obliges us to respect and obey all our lawful superiors.
Let everyone be subject to the higher authorities, for there exists no authority except from God, and those who exist have been appointed by God. Therefore he who resists authority resists the ordinance of God; and they that resist bring on themselves condemnation. (Romans 13:1-2)
What duty have parents toward their children and superiors toward those under their care? Parents must provide for the spiritual and bodily welfare of their children; superiors, according to their varying degrees of responsibility, must care for those entrusted to them.
And you, fathers, do not provoke your children to anger, but rear them in the discipline and admonition of the Lord. (Ephesians 6:4)
Further reading: CCC 2214-2231