Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion add_user.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
if (empty($infomsg)) {
$ugid = "";
$ad_gid = array();
$shell = "/bin/false";
$shell = $cfg['default_shell'];
} else {
$ugid = $_REQUEST[$field_ugid];
$ad_gid = $_REQUEST[$field_ad_gid];
Expand Down
3 changes: 3 additions & 0 deletions configs/config_example.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@

$cfg['default_uid'] = ""; //if empty next incremental will be default
$cfg['default_homedir'] = "/srv/ftp";
// For sftp enabled servers install and use something like scponly or rssh shell
$cfg['default_shell'] = "/bin/false";

// Use either SHA1 or MD5 or any other supported by your MySQL-Server and ProFTPd
// "pbkdf2" is supported if you are using ProFTPd 1.3.5.
// "crypt" uses the unix crypt() function.
Expand Down