|
|
@ -58,11 +58,11 @@ pub fn new_user(username: &str, hasroot: bool, password: &str, do_hash_pass: boo
|
|
|
|
}
|
|
|
|
}
|
|
|
|
let shell_path = match shell {
|
|
|
|
let shell_path = match shell {
|
|
|
|
"bash" => "/bin/bash",
|
|
|
|
"bash" => "/bin/bash",
|
|
|
|
"csh" => "/bin/csh",
|
|
|
|
"csh" => "/usr/bin/csh",
|
|
|
|
"fish" => "/bin/fish",
|
|
|
|
"fish" => "/usr/bin/fish",
|
|
|
|
"tcsh" => "/bin/tcsh",
|
|
|
|
"tcsh" => "/usr/bin/tcsh",
|
|
|
|
"zsh" => "/bin/zsh",
|
|
|
|
"zsh" => "/usr/bin/zsh",
|
|
|
|
&_ => "/bin/fish",
|
|
|
|
&_ => "/usr/bin/fish",
|
|
|
|
};
|
|
|
|
};
|
|
|
|
exec_eval(
|
|
|
|
exec_eval(
|
|
|
|
exec_chroot(
|
|
|
|
exec_chroot(
|
|
|
|