From 72b7d21a716986a5527d9af42cdd44df587df0ca Mon Sep 17 00:00:00 2001 From: Miraty Date: Sat, 17 Apr 2021 19:18:41 +0200 Subject: [PATCH] Use a specific skeletton directory --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index 2cbf8d2..36676df 100755 --- a/src/main.rs +++ b/src/main.rs @@ -190,12 +190,15 @@ fn newser(username: String) { let output = Command::new("/usr/sbin/useradd") .arg(&username) .arg("--create-home") + .arg("--skel") + .arg("/usr/local/share/niver/skel") .arg("--base-dir") .arg("/srv/ht") .arg("--gid") .arg("ht") .arg("--shell") .arg("/usr/sbin/nologin") + .output() .expect("failed to execute process"); print_output(output);