[attributs.shell] Ajout d'un shell

This commit is contained in:
Valentin Samir 2013-05-14 18:00:41 +02:00
parent cc0f6e0a91
commit e38aac75bf

View file

@ -939,7 +939,8 @@ class loginShell(Attr):
'/usr/local/bin/badPassSh', '/usr/local/bin/badPassSh',
'/usr/bin/passwd', '/usr/bin/passwd',
'/bin/false', '/bin/false',
'/bin//zsh' '/bin//zsh',
'/usr/sbin/nologin'
''] '']
if shell not in shells: if shell not in shells:
raise ValueError("Shell %r invalide" % shell) raise ValueError("Shell %r invalide" % shell)