Use a specific skeletton directory
This commit is contained in:
parent
39ab75e1c4
commit
72b7d21a71
|
@ -190,12 +190,15 @@ fn newser(username: String) {
|
||||||
let output = Command::new("/usr/sbin/useradd")
|
let output = Command::new("/usr/sbin/useradd")
|
||||||
.arg(&username)
|
.arg(&username)
|
||||||
.arg("--create-home")
|
.arg("--create-home")
|
||||||
|
.arg("--skel")
|
||||||
|
.arg("/usr/local/share/niver/skel")
|
||||||
.arg("--base-dir")
|
.arg("--base-dir")
|
||||||
.arg("/srv/ht")
|
.arg("/srv/ht")
|
||||||
.arg("--gid")
|
.arg("--gid")
|
||||||
.arg("ht")
|
.arg("ht")
|
||||||
.arg("--shell")
|
.arg("--shell")
|
||||||
.arg("/usr/sbin/nologin")
|
.arg("/usr/sbin/nologin")
|
||||||
|
|
||||||
.output()
|
.output()
|
||||||
.expect("failed to execute process");
|
.expect("failed to execute process");
|
||||||
print_output(output);
|
print_output(output);
|
||||||
|
|
Reference in New Issue