search for: ssh_user_dir

Displaying 1 result from an estimated 1 matches for "ssh_user_dir".

2001 Jan 16
1
ssh drops privs when it can't find ~/.ssh/prng_seed
...w = getpwuid(original_uid); if (pw == NULL) fatal("Couldn't get password entry for current user (%i): %s", original_uid, strerror(errno)); /* Try to ensure that the parent directory is there */ snprintf(filename, sizeof(filename), "%.512s/%s", pw->pw_dir, SSH_USER_DIR); mkdir(filename, 0700); snprintf(filename, sizeof(filename), "%.512s/%s", pw->pw_dir, SSH_PRNG_SEED_FILE); debug("writing PRNG seed to file %.100s", filename); RAND_bytes(seed, sizeof(seed)); /* Don't care if the seed doesn't exist */ prng_check_seedfile...