. . "(m) To perform such duties as necessary or as may be assigned by this charter, by-law, town meeting vote or the board of selectmen." . .