add GroupnameOption

This commit is contained in:
Emmanuel Garette 2019-11-19 18:31:48 +01:00
parent 74e604478e
commit 15669372db

View file

@ -29,4 +29,10 @@ class UsernameOption(RegexpOption):
#regexp build with 'man 8 adduser' informations
_regexp = re.compile(r"^[a-z_][a-z0-9_-]{0,30}[$a-z0-9_-]{0,1}$")
_type = 'username'
_display_name = _('username')
_display_name = _('unix username')
class GroupnameOption(UsernameOption):
__slots__ = tuple()
_type = 'groupname'
_display_name = _('unix groupname')