Sponsored Content
Top Forums UNIX for Advanced & Expert Users AIX Unix.. number of users on system in a particular group Post 37656 by afiore on Tuesday 24th of June 2003 03:21:20 PM
Old 06-24-2003
AIX Unix.. number of users on system in a particular group

Does anyone know what pipe string might be used to determine how many people are logged onto an AIX system where a group ID begins with lets say 4.

In other words, I am looking to query the system for the number of people currently logged onto a system that belong to any group starting with 4. Could be 400, 4102, 444, etc.
 

7 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

UNIX Forums Users Group - LinkedIn ?

I received an email claiming to invite me to some sort of user group connected through this forum. I did not click the link because the email is of dubious appearance. Is this group legit and is there other information about it someplace? Thank you. (4 Replies)
Discussion started by: Bobby
4 Replies

2. AIX

activating volume group on system after higher level aix installation

Hi, if I do install aix 5.3 on the rootvg of an aix 4.3.3 system (having rootvg and data1vg), is it possible to varyonvg the data1vg after the installation ? (any caution ?) (1 Reply)
Discussion started by: astjen
1 Replies

3. Shell Programming and Scripting

List ALL users in a Unix Group (Primary and Secondary)

Is there a command or better combination of cmds that will give me the list of Unix users in a particular Unix group whether their primary group is that group in question (information stored in /etc/passwd) or they are in a secondary group (information stored in /etc/group). So far all I got... (5 Replies)
Discussion started by: ckmehta
5 Replies

4. UNIX for Advanced & Expert Users

Best practices with AIX system users?

All, Preliminaries: AIX 5.2 Tivoli Maestro 6.1 (9.2) I am auditing an older AIX system. As it stands, I can login remotely to the system using the Maestro application's user account. This is BAD. The administrator claims that he cannot disable the remote login, because it will... (1 Reply)
Discussion started by: Thatto
1 Replies

5. Emergency UNIX and Linux Support

List of users on an AIX system

Is there a way to generate a list of users with name, user ID, and Security Group? It is urgent for audit purposes. Please help. (5 Replies)
Discussion started by: ggayathri
5 Replies

6. What is on Your Mind?

Invitation to join the UNIX Forums Users Group on LinkedIn

Hi Folks, You’re invited to be the first to join the UNIX Forums Users Group on LinkedIn. Joining will allow you to find and contact other UNIX Forums Users Group members on LinkedIn. The goal of this group is to help members: Reach other members of the UNIX Forums Users Group Accelerate... (2 Replies)
Discussion started by: Neo
2 Replies

7. Shell Programming and Scripting

To get total number of users and their groups in remote UNIX machine

Hi All I am trying to do ssh to different server and on the remote server for each user trying to get groups of that user but i am not getting the required result. ssh username@ip_address "for i in $( cat /etc/passwd| cut -d: -f1);do groups $i done;exit" >>abc.txt only names are... (5 Replies)
Discussion started by: Ekamjot
5 Replies
groupdel(8)						      System Manager's Manual						       groupdel(8)

NAME
groupdel - Deletes a group definition from the system SYNOPSIS
/usr/sbin/groupdel [-P] [-x extended_option] group_name OPTIONS
Creates a PC group only. The following extended_option attributes are available: Indicates whether or not the group is distributed. The value of the distributed=n attribute can be 0 or 1. If set to 0, the group is deleted from the local system. If set to 1, the group is deleted from the NIS master database on the running system. Indicates whether or not the group is local. The value of the local=n attribute can be 0 or 1. If set to 1, the group is deleted from the local database. If set to 0, the group is deleted from the NIS master database. Specifies the name of the group to be deleted from the system. The groupname must exist. DESCRIPTION
The groupdel command lets the system administrator delete existing groups from the system, by group name. In addition, the system adminis- trator can use the -x option to specify whether the group to be deleted is local or whether the group resides in the NIS master database. If the -x option is not specified, the group is deleted from the appropriate database as specified by the system defaults. The default behavior on the system for the groupdel command is distributed=0 and local=1. With these values, the system deletes the group from the local database by default. Setting the distributed= and local= attributes to the same value (for example, distributed=0 and local=0) produces an error. When the Advanced Server for UNIX (ASU) is running, you can also delete PC groups consisting of members who are holders of Windows NT domain accounts. You must have superuser privilege to execute this command. EXIT STATUS
The groupmod command exits with one of the following values: Success. Failure. Warning. EXAMPLES
The following example removes the group, testgrp: % groupdel testgrp The following example removes the group, testgrp, from the local group database: % groupdel -x local=1 testgrp The following example removes the PC users group, domainbdev, from the local group database: % groupdel -P domainbdev FILES
The groupdel command operates on the appropriate files for the specific level of system security. SEE ALSO
Commands: groupadd(8), groupmod(8), useradd(8), userdel(8), usermod(8) System Administration Security groupdel(8)
All times are GMT -4. The time now is 03:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy