Lines Matching defs:home
88 char *u_home; /* home directory */
89 mode_t u_homeperm; /* permissions of home dir */
94 char *u_basedir; /* base directory for home */
150 #define DEF_BASEDIR "/home"
269 /* remove a users home directory, returning 1 for success (ie, no problems encountered) */
277 warnx("Not deleting home directory `%s'; userid is 0", pwp->pw_dir);
283 warn("Cannot access home directory `%s'", pwp->pw_dir);
287 warnx("Home directory `%s' is not a directory", pwp->pw_dir);
334 /* copy any dot files into the user's home directory */
1073 char home[MaxFileNameLen];
1185 (void)strlcpy(home, up->u_home, sizeof(home));
1187 /* if home directory hasn't been given, make it up */
1188 (void)snprintf(home, sizeof(home), "%s/%s", up->u_basedir,
1214 if (lstat(home, &st) < 0 && !(up->u_flags & F_MKDIR)) {
1215 warnx("Warning: home directory `%s' doesn't exist, "
1216 "and -m was not specified", home);
1242 home,
1253 if (lstat(home, &st) == 0) {
1257 "Can't add user `%s': home directory `%s' "
1258 "already exists", login_name, home);
1260 if (asystem("%s -p %s", _PATH_MKDIR, home) != 0) {
1264 "can't mkdir `%s'", login_name, home);
1266 (void)copydotfiles(up->u_skeldir, up->u_uid, gid, home,
1296 syslog(LOG_INFO, "New user added: name=%s, uid=%d, gid=%d, home=%s, "
1297 "shell=%s", login_name, up->u_uid, gid, home, up->u_shell);
1496 * home directory is to be moved.
1744 "gid=%d, home=%s, shell=%s",
1749 "new name=%s, uid=%d, gid=%d, home=%s, shell=%s",
1798 "[-c comment] [-d home-dir] [-e expiry-time]\n"
1807 "[-c comment] [-d home-dir] [-e expiry-time]\n"