Home
last modified time | relevance | path

Searched refs:pw_shell (Results 1 – 25 of 45) sorted by relevance

12

/titanic_44/usr/src/cmd/newgrp/
H A Dnewgrp.c144 if (!*p->pw_shell) { in main()
146 p->pw_shell = shell; in main()
148 p->pw_shell = SHELL; in main()
175 len = strlen(p->pw_shell) + 2; in main()
178 (void) snprintf(shell, len, "-%s", p->pw_shell); in main()
186 shell = p->pw_shell; in main()
188 (void) execl(p->pw_shell, shell, NULL); in main()
/titanic_44/usr/src/lib/libc/port/gen/
H A Dputpwent.c54 p->pw_shell ? p->pw_shell : ""); in putpwent()
61 p->pw_shell); in putpwent()
H A Dgetpwnam_r.c287 passwd->pw_shell = ""; in str2passwd()
394 passwd->pw_shell = p = gettok(&next); in str2passwd()
/titanic_44/usr/src/lib/libnisdb/yptol/
H A Dshim_changepasswd.c120 char *pw_shell; member
184 (!validstr(yppwd.newpw.pw_shell, SHELLSIZE))) { in shim_changepasswd()
659 if ((change_list & CNG_SH) && (!validloginshell(old_ent->pw_shell, in modify_ent()
660 yppwd->newpw.pw_shell, root_on_master))) in modify_ent()
709 if (NULL != old_ent->pw_shell) in modify_ent()
710 sfree(old_ent->pw_shell); in modify_ent()
711 old_ent->pw_shell = strdup(yppwd->newpw.pw_shell); in modify_ent()
712 if (NULL == old_ent->pw_shell) { in modify_ent()
757 if ((NULL != old_ent->pw_shell) && in get_change_list()
759 (strcmp(old_ent->pw_shell, yppwd->newpw.pw_shell) != 0)) { in get_change_list()
[all …]
/titanic_44/usr/src/cmd/ypcmd/yppasswd/
H A Dyppasswdd.c568 validloginshell(char *pw_shell, char *arg, int privileged) in validloginshell() argument
573 if (pw_shell == 0 || *pw_shell == '\0') in validloginshell()
574 pw_shell = defshell; in validloginshell()
578 cp = strrchr(pw_shell, '/'); in validloginshell()
582 cp = pw_shell; in validloginshell()
588 pw_shell); in validloginshell()
596 if (strcmp(pw_shell, valid) == 0) in validloginshell()
601 pw_shell); in validloginshell()
650 pw_shell = newshell; in validloginshell()
H A Dchangepasswd.c151 (!validstr(yppwd.newpw.pw_shell, shellsize))) { in changepasswd()
451 if ((!noshell) && (strcmp(opwd.pw_shell, newpw.pw_shell) != 0)) { in changepasswd()
532 yppwd.newpw.pw_shell, in changepasswd()
537 opwd.pw_shell, in changepasswd()
543 !validloginshell(opwd.pw_shell, newpw.pw_shell, root_on_master)) { in changepasswd()
559 opwd.pw_shell = newpw.pw_shell; in changepasswd()
H A Dyppasswdxdr.c56 if (!xdr_wrapstring(xdrs, &pw->pw_shell)) { in xdr_passwd()
/titanic_44/usr/src/lib/passwdutil/
H A Dutils.c67 if (pw->pw_shell) free(pw->pw_shell); in free_pwd()
108 if (s->pw_shell) { in dup_pw()
109 if (((*d)->pw_shell = strdup(s->pw_shell)) == NULL) in dup_pw()
H A Dnis_attr.c114 pwd->pw_shell = nis; in nis_to_pwd()
115 if (pwd->pw_shell[0]) in nis_to_pwd()
116 pwd->pw_shell[strlen(pwd->pw_shell)-1] = '\0'; in nis_to_pwd()
223 if ((w->data.val_s = strdup(pw->pw_shell)) == NULL) in nis_getattr()
432 nisbuf->pwd->pw_shell = p->data.val_s; in nis_update()
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.rexecd.c417 if (*pwd->pw_shell == '\0') in doit()
418 pwd->pw_shell = "/bin/sh"; in doit()
434 (void) strncat(shell, pwd->pw_shell, sizeof (shell) - 7); in doit()
456 cp = rindex(pwd->pw_shell, '/'); in doit()
460 cp = pwd->pw_shell; in doit()
461 (void) execle(pwd->pw_shell, cp, "-c", cmdbuf, (char *)0, envinit); in doit()
462 perror(pwd->pw_shell); in doit()
H A Din.rshd.c1056 if (*pwd->pw_shell == '\0') in doit()
1057 pwd->pw_shell = "/bin/sh"; in doit()
1123 shell_len = strlen(pwd->pw_shell) + strlen(shellstr) + 1; in doit()
1133 (void) snprintf(shell, shell_len, "%s%s", shellstr, pwd->pw_shell); in doit()
1244 cp = strrchr(pwd->pw_shell, '/'); in doit()
1248 cp = pwd->pw_shell; in doit()
1272 (void) execle(pwd->pw_shell, cp, "-c", (char *)cmdbuf + 3, in doit()
1275 (void) execle(pwd->pw_shell, cp, "-c", cmdbuf, NULL, in doit()
1279 perror(pwd->pw_shell); in doit()
/titanic_44/usr/src/cmd/newtask/
H A Dnewtask.c196 if (strcmp(pw->pw_shell, "") == 0) { in main()
198 pw->pw_shell = SHELL; in main()
200 pw->pw_shell = SHELL2; in main()
216 size_t len_shell = strlen(pw->pw_shell) + strlen("SHELL=") + 1; in main()
232 (void) snprintf(env_shell, len_shell, "SHELL=%s", pw->pw_shell); in main()
293 (void) snprintf(shell, PATH_MAX, "-%s", basename(pw->pw_shell)); in main()
295 shell = basename(pw->pw_shell); in main()
305 filename = pw->pw_shell; in main()
/titanic_44/usr/src/cmd/cron/
H A Dpermit.c58 if ((strcmp(nptr->pw_shell, SHELL) != 0) &&
59 (strcmp(nptr->pw_shell, "") != 0)) {
/titanic_44/usr/src/lib/pam_modules/dial_auth/
H A Ddial_auth.c138 if (pwd.pw_shell != NULL && strcmp(pwd.pw_shell, line) == 0) in pam_sm_authenticate()
/titanic_44/usr/src/cmd/login/
H A Dlogin.c2121 if (*pwd->pw_shell == '*') { in process_chroot_logins()
2269 if (*pwd->pw_shell == '\0') { in establish_user_environment()
2275 pwd->pw_shell = SHELL; in establish_user_environment()
2277 pwd->pw_shell = SHELL2; in establish_user_environment()
2280 ENVSTRNCAT(shell, pwd->pw_shell); in establish_user_environment()
2477 (void) strlcat(minusnam, basename(pwd->pw_shell), in exec_the_shell()
2483 (void) execl(pwd->pw_shell, minusnam, (char *)0); in exec_the_shell()
2496 if (access(pwd->pw_shell, R_OK|X_OK) == 0) { in exec_the_shell()
2497 (void) execl(SHELL, "sh", pwd->pw_shell, (char *)0); in exec_the_shell()
2498 (void) execl(SHELL2, "sh", pwd->pw_shell, (char *)0); in exec_the_shell()
/titanic_44/usr/src/lib/libbc/inc/include/
H A Dpwd.h46 char *pw_shell; member
/titanic_44/usr/src/lib/libbc/inc/5include/
H A Dpwd.h67 char *pw_shell; member
/titanic_44/usr/src/lib/libnsl/yp/
H A Dyppasswd_xdr.c49 return (xdr_wrapstring(xdrsp, &pw->pw_shell)); in xdr_passwd()
/titanic_44/usr/src/lib/libbc/libc/compat/4.1/
H A Dgetpw.c54 strcat(buf, pw->pw_shell); in getpw()
/titanic_44/usr/src/lib/libbc/libc/compat/sys5/
H A Dgetpw.c58 strcat(buf, pw->pw_shell); in getpw()
/titanic_44/usr/src/cmd/logins/
H A Dlogins.c456 if (!pwent->pw_shell || !(*pwent->pw_shell)) { in adddisp()
459 new->shell = strdup(pwent->pw_shell); in adddisp()
1120 lpw->pw.pw_shell = strdup(pw->pw_shell); in fill_localpw()
/titanic_44/usr/src/cmd/oamuser/user/
H A Dusermod.c138 npw->pw_shell = strcpmalloc(opw->pw_shell);
507 if (strcmp(pstruct->pw_shell, shell) == 0) {
/titanic_44/usr/src/lib/libpkg/common/
H A Dncgrpw.c568 if (pwd->pw_shell == NULL) { in dup_pw_ent()
573 } else if ((pwd->pw_shell = strdup(pwd->pw_shell)) == NULL) { in dup_pw_ent()
/titanic_44/usr/src/head/
H A Dpwd.h57 char *pw_shell; member
/titanic_44/usr/src/cmd/ssh/libssh/common/
H A Dmisc.c177 copy->pw_shell = xstrdup(pw->pw_shell); in pwcopy()
199 xfree(p->pw_shell); in pwfree()

12