nixos/google_oslogin: run as root
This is needed in order to read the files in /var/google-users.d, as the program sets the permissions to 750 and the user and group to root. See: https://github.com/GoogleCloudPlatform/guest-oslogin/blob/20250821.00/src/oslogin_utils.cc#L1337-L1338
This commit is contained in:
@@ -77,7 +77,7 @@ in
|
||||
'';
|
||||
};
|
||||
services.openssh.authorizedKeysCommand = "/etc/ssh/authorized_keys_command_google_oslogin %u";
|
||||
services.openssh.authorizedKeysCommandUser = "nobody";
|
||||
services.openssh.authorizedKeysCommandUser = "root";
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user