praetor roman magistrate , responsible for judiciary affairs praetor was a title granted by the government of ancient rome to men acting in one of two official capacities : the commander of an army ; or , an elected magistratus ( magistrate ) , assigned various duties ( which varied at different periods in rome 's history ) .