Skip to content

Commit

Permalink
Use /bin/sh as default shell when creating/importing users via WebUI.
Browse files Browse the repository at this point in the history
Signed-off-by: Volker Theile <votdev@gmx.de>
  • Loading branch information
votdev committed Oct 26, 2018
1 parent 5cb3fa8 commit a07a949
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions deb/openmediavault/debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ openmediavault (5.0-1) unstable; urgency=low
openmediavault (4.1.13-1) stable; urgency=low

* Fix various issues found by the lgtm.com project.
* Use /bin/sh as default shell when creating/importing users via WebUI.
* Issue #182: Remove percentage text in progress bar when config is
applied. It is not possible to display an accurate value here.
* Issue #192: Allow to define shell at user import.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ finish:
"password" => $matches[5],
"groups" => explode(",", $matches[7]),
"disallowusermod" => boolvalEx($matches[8]),
"shell" => !empty($matches[6]) ? $matches[6] : "/bin/dash",
"shell" => !empty($matches[6]) ? $matches[6] : "/bin/sh",
"sshpubkeys" => []
];
if (!empty($matches[2]) && is_numeric($matches[2]))
Expand Down

0 comments on commit a07a949

Please sign in to comment.