servnest
/
maniver
Archived
2
0
Fork 0

Use a specific skeletton directory

This commit is contained in:
Miraty 2021-04-17 19:18:41 +02:00
parent 39ab75e1c4
commit 72b7d21a71
1 changed files with 3 additions and 0 deletions

View File

@ -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);