IBM PureData System for Analytics, Version 7.1

Add Linux groups

When you use the useradd command to create a Linux user, the command automatically creates a Linux group with the same name. You can use the groupadd command to create a Linux group.

The syntax for the groupadd command is:
/usr/sbin/groupadd [-G gid [-o][-r][-f] group

To add a group, enter: groupadd staff

This groupadd command adds the group named staff.

For Netezza® HA systems, after you add the Linux group on one host, you must create exactly the same group with the same groupid value on the other host. To create Linux groups in a Netezza HA environment, use the following procedure:

  1. Log in to Netezza host 1 as the root or super user.
  2. Use the groupadd command to create your new Linux group:
    [root@nzhost-h1 ~]# groupadd staff
  3. Confirm the groupid for the new group:
    [root@nzhost-h1 ~]# grep staff /etc/group
    staff:x:501:

    The first number after the x is the groupid.

  4. Connect to Netezza host 2 as the root or super user.
  5. Use the groupadd command to create your new Linux group with the same groupid:
    [root@nzhost-h2 ~]# groupadd -g 501 staff
  6. Confirm that the group on host 2 has the same groupid:
    [root@nzhost-h2 ~]# grep staff /etc/group
    staff:x:501:


Feedback | Copyright IBM Corporation 2014 | Last updated: 2014-02-28