Adding "-r", to create a system user to not show up on user login screen
This commit is contained in:
@@ -398,7 +398,7 @@ skipping:
|
|||||||
}
|
}
|
||||||
|
|
||||||
func GetPacketsUID() (int, error) {
|
func GetPacketsUID() (int, error) {
|
||||||
_ = exec.Command("useradd", "-M", "-N", "packets").Run()
|
_ = exec.Command("useradd", "-M", "-N", "-r", "packets").Run()
|
||||||
cmd := exec.Command("id", "-u", "packets")
|
cmd := exec.Command("id", "-u", "packets")
|
||||||
|
|
||||||
out, err := cmd.CombinedOutput()
|
out, err := cmd.CombinedOutput()
|
||||||
|
|||||||
Reference in New Issue
Block a user