pw_conf.c (85204142eb6f62c4f19b4544f0c9d9f828f44e37) pw_conf.c (644af48df68c2e5b309de3f1287fe64a449c825d)
1/*-
2 * Copyright (C) 1996
3 * David L. Nugent. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 77 unchanged lines hidden (view full) ---

86 0, /* Default password for new users? (nologin) */
87 0, /* Reuse uids? */
88 0, /* Reuse gids? */
89 NULL, /* NIS version of the passwd file */
90 "/usr/share/skel", /* Where to obtain skeleton files */
91 NULL, /* Mail to send to new accounts */
92 "/var/log/userlog", /* Where to log changes */
93 "/home", /* Where to create home directory */
1/*-
2 * Copyright (C) 1996
3 * David L. Nugent. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 77 unchanged lines hidden (view full) ---

86 0, /* Default password for new users? (nologin) */
87 0, /* Reuse uids? */
88 0, /* Reuse gids? */
89 NULL, /* NIS version of the passwd file */
90 "/usr/share/skel", /* Where to obtain skeleton files */
91 NULL, /* Mail to send to new accounts */
92 "/var/log/userlog", /* Where to log changes */
93 "/home", /* Where to create home directory */
94 0777, /* Home directory perms, modified by umask */
94 _DEF_DIRMODE, /* Home directory perms, modified by umask */
95 "/bin", /* Where shells are located */
96 system_shells, /* List of shells (first is default) */
97 bourne_shell, /* Default shell */
98 NULL, /* Default group name */
99 NULL, /* Default (additional) groups */
100 NULL, /* Default login class */
101 1000, 32000, /* Allowed range of uids */
102 1000, 32000, /* Allowed range of gids */

--- 194 unchanged lines hidden (view full) ---

297 break;
298 case _UC_HOMEROOT:
299 config.home = (q == NULL || !boolean_val(q, 1))
300 ? "/home" : newstr(q);
301 break;
302 case _UC_HOMEMODE:
303 modeset = setmode(q);
304 config.homemode = (q == NULL || !boolean_val(q, 1))
95 "/bin", /* Where shells are located */
96 system_shells, /* List of shells (first is default) */
97 bourne_shell, /* Default shell */
98 NULL, /* Default group name */
99 NULL, /* Default (additional) groups */
100 NULL, /* Default login class */
101 1000, 32000, /* Allowed range of uids */
102 1000, 32000, /* Allowed range of gids */

--- 194 unchanged lines hidden (view full) ---

297 break;
298 case _UC_HOMEROOT:
299 config.home = (q == NULL || !boolean_val(q, 1))
300 ? "/home" : newstr(q);
301 break;
302 case _UC_HOMEMODE:
303 modeset = setmode(q);
304 config.homemode = (q == NULL || !boolean_val(q, 1))
305 ? 0777 : getmode(modeset, 0777);
305 ? _DEF_DIRMODE : getmode(modeset, _DEF_DIRMODE);
306 free(modeset);
307 break;
308 case _UC_SHELLPATH:
309 config.shelldir = (q == NULL || !boolean_val(q, 1))
310 ? "/bin" : newstr(q);
311 break;
312 case _UC_SHELLS:
313 for (i = 0; i < _UC_MAXSHELLS && q != NULL; i++, q = strtok(NULL, toks))

--- 203 unchanged lines hidden ---
306 free(modeset);
307 break;
308 case _UC_SHELLPATH:
309 config.shelldir = (q == NULL || !boolean_val(q, 1))
310 ? "/bin" : newstr(q);
311 break;
312 case _UC_SHELLS:
313 for (i = 0; i < _UC_MAXSHELLS && q != NULL; i++, q = strtok(NULL, toks))

--- 203 unchanged lines hidden ---