Searched refs:userdir (Results 1 - 1 of 1) sorted by relevance

/osnet-11/usr/src/lib/pam_modules/unix_cred/
H A Dunix_cred.c158 char *userdir; local
160 (void) asprintf(&userdir, "/var/user/%s", pwd->pw_name);
161 if (userdir == NULL) { /* memory error */
163 "pam_unix_cred: error allocating userdir buffer space.");
166 if (mkdir(userdir, 0700) != 0) {
169 free(userdir);
173 "pam_unix_cred: error creating %s: %m", userdir);
176 if (chmod(userdir, 0700) != 0 && errno != EROFS)
179 userdir);
182 if (chown(userdir, pw
[all...]

Completed in 33 milliseconds