Lines Matching refs:username
64 platform_user_get (const char *username, struct platform_state_user *state)
68 if (username)
71 state->pw = getpwnam (username);
73 msg (M_ERR, "failed to find UID for user %s", username);
74 state->username = username;
77 msg (M_FATAL, "cannot get UID for user %s -- platform lacks getpwname() or setuid() system calls", username);
87 if (state->username && state->pw)
90 msg (M_ERR, "setuid('%s') failed", state->username);
91 msg (M_INFO, "UID set to %s", state->username);