From ede22122820db0d5fb98bad1c72743240440534b Mon Sep 17 00:00:00 2001 From: usernameswift Date: Wed, 3 Aug 2022 17:06:31 -0400 Subject: [PATCH] Fixed shell paths --- src/functions/users.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/functions/users.rs b/src/functions/users.rs index 8bcc7b4..4d3b194 100755 --- a/src/functions/users.rs +++ b/src/functions/users.rs @@ -58,11 +58,11 @@ pub fn new_user(username: &str, hasroot: bool, password: &str, do_hash_pass: boo } let shell_path = match shell { "bash" => "/bin/bash", - "csh" => "/bin/csh", - "fish" => "/bin/fish", - "tcsh" => "/bin/tcsh", - "zsh" => "/bin/zsh", - &_ => "/bin/fish", + "csh" => "/usr/bin/csh", + "fish" => "/usr/bin/fish", + "tcsh" => "/usr/bin/tcsh", + "zsh" => "/usr/bin/zsh", + &_ => "/usr/bin/fish", }; exec_eval( exec_chroot(