1 From a13b0914bc7ff54ee5c9c77493b5ccff971b00d0 Mon Sep 17 00:00:00 2001
2 From: Alexander Pyhalov <apyhalov@gmail.com>
3 Date: Thu, 8 Dec 2016 08:36:52 +0300
4 Subject: [PATCH] 7648 useradd/mod commands operate on /home special filesystem
6 Updated 2022.03.15 for IPD4
8 diff --git a/usr/src/cmd/passwd/passwd.c b/usr/src/cmd/passwd/passwd.c
9 index 7d993f6..fcd7eb2 100644
10 --- a/usr/src/cmd/passwd/passwd.c
11 +++ b/usr/src/cmd/passwd/passwd.c
13 #include <rpcsvc/nis.h>
16 -#include <userdefs.h>
17 #include <passwdutil.h>
19 #include <nss_dbdefs.h>
21 #include <bsm/adt_event.h>
24 + * This actually has just informational meaning and should match
25 + * SHELL defined in usr/src/cmd/login/login.c
27 +#define SHELL "/usr/bin/sh"
30 * flags indicate password attributes to be modified
33 @@ -550,10 +555,10 @@ userinput(char *name, pwu_repository_t *rep, attrtype type)
34 oldval = oldattr.data.val_s;
36 if (type == ATTR_SHELL) {
37 - /* No current shell: set DEFSHL as default choice */
38 + /* No current shell: set SHELL as default choice */
39 if (*oldval == '\0') {
41 - oldval = strdup(DEFSHL);
42 + oldval = strdup(SHELL);
45 if (ckuid() != SUCCESS) {
46 diff --git a/usr/src/head/userdefs.h b/usr/src/head/userdefs.h
47 index 7c6407c..c6f2efc 100644
48 --- a/usr/src/head/userdefs.h
49 +++ b/usr/src/head/userdefs.h
50 @@ -51,10 +51,10 @@ extern "C" {
51 #define DEFPROJNAME "default"
53 #define DEFGNAME "other"
54 -#define DEFPARENT "/home"
55 +#define DEFPARENT "/export/home"
56 #define DEFSKL "/etc/skel"
57 -#define DEFSHL "/bin/sh"
58 -#define DEFROLESHL "/bin/pfsh"
59 +#define DEFSHL "/usr/bin/bash"
60 +#define DEFROLESHL "/usr/bin/pfbash"
64 diff --git a/usr/src/man/man8/roleadd.8 b/usr/src/man/man8/roleadd.8
65 index 6777f95..54f9b03 100644
66 --- a/usr/src/man/man8/roleadd.8
67 +++ b/usr/src/man/man8/roleadd.8
68 @@ -136,7 +136,7 @@ are:
77 @@ -156,7 +156,7 @@ are:
82 +\fB/usr/bin/pfbash\fR
86 diff --git a/usr/src/man/man8/useradd.8 b/usr/src/man/man8/useradd.8
87 index f87c545..8fb1581 100644
88 --- a/usr/src/man/man8/useradd.8
89 +++ b/usr/src/man/man8/useradd.8
90 @@ -145,7 +145,7 @@ values are:
99 @@ -165,7 +165,7 @@ values are: