Adding user with supplementary groups within jumpstart installation

Ask a Question related to Sun Solaris, Design and Development.

  1. #1

    Default Adding user with supplementary groups within jumpstart installation

    Hello,

    When I am jumpstarting my servers (Solaris 9) I am adding system
    administrators account at the end of the finish script, for that I use
    the following command in my finish script:

    chroot ${BASEDIR} /usr/sbin/useradd -u 300 -g sysstaff -G
    named,mysql,openldap -c 'A sysadmin account' -d /home /asysadmin -s
    /usr/b
    in/bash asysadmin

    It does work except for the "-G" option, strangely the sysadmin account
    doesn't get added to the specified groups, in the case named, mysql and
    openldap. These groups are already added to the groups file at this
    stage by their respective packages so it can't be because the groups are
    not available.... What also wonders me is that in
    /var/sadm/system/logs/finish.log I don't see any error messages or such
    from useradd.

    Does anyone have an idea what could be wrong ? This is really strange to
    me....

    Thanks
    Regards


    Marc Guest

  2. Similar Questions and Discussions

    1. Specify more than 1 supplementary group for a user ??
      Whenever I do: usermod -G groupname username ..... any existing supplementary group of username, as shown from /etc/group, gets removed and...
    2. Supplementary groups
      Is there a function for setting supllementary groups? I don't see a method documented in Process. I want the equivalent of man (2) setgroups: ...
    3. Webstart starting after jumpstart installation at first reboot
      Hello, I am installing Solaris 9 using Jumpstart to quickly install servers without doing anything except typing "boot net - install", the...
    4. Detecting Jumpstart installation from script
      Hello, I've got a script with functions which is run during the finish script (in the jumpstart installation) and also during a normal reboot....
    5. adding package IBM named LUM on Solaris 8 with jumpstart procedure
      On Thu, 26 Jun 2003 15:10:11 +0200, Faivre Dominique wrote: I have seen the same behaviour with IBM's WebSphere packages for Solaris. I suspect...
  3. #2

    Default Re: Adding user with supplementary groups within jumpstart installation

    Marc wrote:
    > Does anyone have an idea what could be wrong ? This is really strange to
    > me....
    Don't bother, I've found the solution !



    Marc Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139