Use a specific skeletton directory
This commit is contained in:
parent
39ab75e1c4
commit
72b7d21a71
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue