changing home dir for packets user to /etc/packets (configuration folder)

This commit is contained in:
2025-10-26 18:04:07 -03:00
parent 807d9fa784
commit befa4e3ea4

View File

@@ -431,7 +431,7 @@ skipping:
} }
func GetPacketsUID() (int, error) { func GetPacketsUID() (int, error) {
_ = exec.Command("useradd", "-M", "-N", "-r", "-s", "/bin/false", "-d", "/var/lib/packets", "packets").Run() _ = exec.Command("useradd", "-M", "-N", "-r", "-s", "/bin/false", "-d", "/etc/packets", "packets").Run()
cmd := exec.Command("id", "-u", "packets") cmd := exec.Command("id", "-u", "packets")
out, err := cmd.CombinedOutput() out, err := cmd.CombinedOutput()