I asked this question, and it was closed and deleted. I ask myself: Who hates progress, improvements and changes? https://serverfault.com/questions/846453/alterantive-to-sudo-which-allows-regular-expressions Here the question again: Up to now sudo only allows simple wildcards. See: https://www.sudo.ws/man/sudoers.man.html#Wildcards Is there an alternative or an replacement which allows regular expressions. If possible Python compatible regular expression :-)