version 1.37, 2001/06/19 16:21:49 |
version 1.38, 2001/06/24 17:12:52 |
|
|
quickexit(1); |
quickexit(1); |
} |
} |
rootlogin = 0; |
rootlogin = 0; |
/* XXX - kerb5 uses a '/' not a '.' ??? */ |
|
if ((instance = strchr(username, '.')) != NULL) { |
if ((instance = strchr(username, '.')) != NULL) { |
if (strncmp(instance, ".root", 5) == 0) |
if (strncmp(instance, ".root", 5) == 0) |
rootlogin = 1; |
rootlogin = 1; |
|
|
if (lastchance) |
if (lastchance) |
(void)printf("WARNING: Your password has expired. You must change your password, now!\n"); |
(void)printf("WARNING: Your password has expired. You must change your password, now!\n"); |
|
|
if (setusercontext(lc, pwd, pwd->pw_uid, |
if (setusercontext(lc, pwd, rootlogin ? 0 : pwd->pw_uid, |
LOGIN_SETALL & ~LOGIN_SETPATH) < 0) { |
LOGIN_SETALL & ~LOGIN_SETPATH) < 0) { |
warn("unable to set user context"); |
warn("unable to set user context"); |
quickexit(1); |
quickexit(1); |