Fix UID, GROUPS setting
This commit is contained in:
+2
-2
@@ -75,8 +75,8 @@ pub fn main() {
|
||||
command.current_dir(passwd.home);
|
||||
|
||||
command.env("USER", &user);
|
||||
command.uid("UID", passwd.uid);
|
||||
command.uid("GROUPS", passwd.gid);
|
||||
command.env("UID", format!("{}", passwd.uid));
|
||||
command.env("GROUPS", format!("{}", passwd.gid));
|
||||
command.env("HOME", passwd.home);
|
||||
command.env("SHELL", passwd.shell);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user