[attributs.shell] Ajout d'un shell
This commit is contained in:
parent
cc0f6e0a91
commit
e38aac75bf
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue