Lines Matching defs:user
31 #include "user-util.h"
89 int change_uid_gid(const char *user, char **_home) {
105 if (!user || streq(user, "root") || streq(user, "0")) {
116 /* First, get user credentials */
117 fd = spawn_getent("passwd", user, &pid);
129 log_error("Failed to resolve user %s.", user);
143 log_error("/etc/passwd entry has invalid user field.");
186 log_error("Failed to parse UID of user.");
192 log_error("Failed to parse GID of user.");
201 fd = spawn_getent("initgroups", user, &pid);
213 log_error("Failed to resolve user %s.", user);