pentry
become_user(struct passwd *pentry, uid_t uid)
if (initgroups(pentry->pw_name, pentry->pw_gid) == -1)
perr("Cannot init group list for `%s'", pentry->pw_name);
if (setegid(pentry->pw_gid) == -1 || setgid(pentry->pw_gid) == -1)
(unsigned long)pentry->pw_gid);
if (setlogin(pentry->pw_name) == -1)
perr("Cannot set login name to `%s'", pentry->pw_name);
if (chdir(pentry->pw_dir) == -1)
struct passwd *pentry;
pentry = getpwuid(uid);
if (pentry == NULL)
if (pentry->pw_expire && time(NULL) >= pentry->pw_expire)
become_user(pentry, uid);
become_user(pentry, uid);
int *pentry;
pentry = &((int *)Sysmap)[virtual >> VAX_PGSHIFT];
*pentry++ = (count >> VAX_PGSHIFT)|PG_V|
return check_for_user(fp, pentry->pw_name);
return !check_for_user(fp, pentry->pw_name);
struct passwd *pentry;
if ((pentry = getpwuid(uid)) == NULL) {
pentry(fp, bdevmtab, i, 'b');
pentry(fp, cdevmtab, i, 'c');