Home
last modified time | relevance | path

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

12

/illumos-gate/usr/src/cmd/newgrp/
H A Dnewgrp.c142 if (!*p->pw_shell) { in main()
144 p->pw_shell = shell; in main()
146 p->pw_shell = SHELL; in main()
173 len = strlen(p->pw_shell) + 2; in main()
176 (void) snprintf(shell, len, "-%s", p->pw_shell); in main()
184 shell = p->pw_shell; in main()
186 (void) execl(p->pw_shell, shell, NULL); in main()
/illumos-gate/usr/src/lib/libnisdb/yptol/
H A Dshim_changepasswd.c124 char *pw_shell; member
712 if (NULL != old_ent->pw_shell) in modify_ent()
713 sfree(old_ent->pw_shell); in modify_ent()
714 old_ent->pw_shell = strdup(yppwd->newpw.pw_shell); in modify_ent()
715 if (NULL == old_ent->pw_shell) { in modify_ent()
762 (strcmp(old_ent->pw_shell, yppwd->newpw.pw_shell) != 0)) { in get_change_list()
864 if (NULL == pwd->pw_shell) in decode_pwd_entry()
949 if (NULL != pwd->pw_shell) in free_pwd_entry()
950 sfree(pwd->pw_shell); in free_pwd_entry()
1028 strcat(s, pwd->pw_shell); in create_pwd_str()
[all …]
/illumos-gate/usr/src/cmd/ypcmd/yppasswd/
H A Dyppasswdd.c566 validloginshell(char *pw_shell, char *arg, int privileged) in validloginshell() argument
571 if (pw_shell == 0 || *pw_shell == '\0') in validloginshell()
572 pw_shell = defshell; in validloginshell()
576 cp = strrchr(pw_shell, '/'); in validloginshell()
580 cp = pw_shell; in validloginshell()
586 pw_shell); in validloginshell()
594 if (strcmp(pw_shell, valid) == 0) in validloginshell()
599 pw_shell); in validloginshell()
648 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()
/illumos-gate/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.c288 passwd->pw_shell = ""; in str2passwd()
395 passwd->pw_shell = p = gettok(&next); in str2passwd()
/illumos-gate/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()
H A Dswitch_utils.c331 passwd->pw_shell = ""; in str2passwd()
423 passwd->pw_shell = p = gettok(&next); in str2passwd()
H A Dnss_attr.c253 if ((w->data.val_s = strdup(pw->pw_shell)) == NULL) in nss_getattr()
/illumos-gate/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()
/illumos-gate/usr/src/cmd/newtask/
H A Dnewtask.c197 if (strcmp(pw->pw_shell, "") == 0) { in main()
199 pw->pw_shell = SHELL; in main()
201 pw->pw_shell = SHELL2; in main()
217 size_t len_shell = strlen(pw->pw_shell) + strlen("SHELL=") + 1; in main()
233 (void) snprintf(env_shell, len_shell, "SHELL=%s", pw->pw_shell); in main()
294 (void) snprintf(shell, PATH_MAX, "-%s", basename(pw->pw_shell)); in main()
296 shell = basename(pw->pw_shell); in main()
306 filename = pw->pw_shell; in main()
/illumos-gate/usr/src/cmd/cron/
H A Dpermit.c57 if ((strcmp(nptr->pw_shell, SHELL) != 0) && in getuser()
58 (strcmp(nptr->pw_shell, "") != 0)) { in getuser()
/illumos-gate/usr/src/lib/pam_modules/dial_auth/
H A Ddial_auth.c136 if (pwd.pw_shell != NULL && strcmp(pwd.pw_shell, line) == 0) in pam_sm_authenticate()
/illumos-gate/usr/src/cmd/login/
H A Dlogin.c2124 if (*pwd->pw_shell == '*') { in process_chroot_logins()
2272 if (*pwd->pw_shell == '\0') { in establish_user_environment()
2278 pwd->pw_shell = SHELL; in establish_user_environment()
2280 pwd->pw_shell = SHELL2; in establish_user_environment()
2283 ENVSTRNCAT(shell, pwd->pw_shell); in establish_user_environment()
2480 (void) strlcat(minusnam, basename(pwd->pw_shell), in exec_the_shell()
2486 (void) execl(pwd->pw_shell, minusnam, (char *)0); in exec_the_shell()
2499 if (access(pwd->pw_shell, R_OK|X_OK) == 0) { in exec_the_shell()
2500 (void) execl(SHELL, "sh", pwd->pw_shell, (char *)0); in exec_the_shell()
2501 (void) execl(SHELL2, "sh", pwd->pw_shell, (char *)0); in exec_the_shell()
/illumos-gate/usr/src/lib/libnsl/yp/
H A Dyppasswd_xdr.c47 return (xdr_wrapstring(xdrsp, &pw->pw_shell)); in xdr_passwd()
/illumos-gate/usr/src/cmd/logins/
H A Dlogins.c453 if (!pwent->pw_shell || !(*pwent->pw_shell)) { in adddisp()
456 new->shell = strdup(pwent->pw_shell); in adddisp()
1117 lpw->pw.pw_shell = strdup(pw->pw_shell); in fill_localpw()
/illumos-gate/usr/src/cmd/oamuser/user/
H A Dusermod.c139 npw->pw_shell = strcpmalloc(opw->pw_shell);
532 if (strcmp(pstruct->pw_shell, shell) == 0) {
/illumos-gate/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()
/illumos-gate/usr/src/head/
H A Dpwd.h57 char *pw_shell; member
/illumos-gate/usr/src/cmd/passmgmt/
H A Dpassmgmt.c344 passwd_st.pw_shell = nullstr; /* no default shell */ in main()
510 passwd_st.pw_shell = optarg; in main()
929 pw_ptr1p->pw_shell = passwd_st.pw_shell; in main()
1621 (int)strlen(pwp->pw_shell) + 6) > (ENTRY_LENGTH-1)) { in ck_p_sz()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/
H A Dfinger.c551 pto->pw_shell = strdup(pfrom->pw_shell); in pwdcopy()
656 if (*pers->pwd->pw_shell) in personprint()
657 (void) printf("\tShell: %-s", pers->pwd->pw_shell); in personprint()
/illumos-gate/usr/src/lib/nsswitch/compat/common/
H A Dgetpwent.c228 fields[6] != 0 ? fields[6] : pw->pw_shell);

12