thanks for your quick reply. I've to give to my boss all primary group of all users from all groups where the user ONE exist.
Exemple if the user ONE exist on the GRP1 and GRP2 I have to see if there some other users in GRP1 and GRP2 and if yes, what is the primary group of thoses users.
I found that the problem come from that specific line :
I found that there is some exact lines two or three times.
I need a specific pattern on result as I have to give an excel file.
When users login, they are directed to menu (aix script). The menu enables the user to choose an environment to work in. Each environment has a different group id. When a user chooses a menu option, I want to change his primary group to that specific environment's group id. Is this at all possible... (3 Replies)
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)
HI
I need to know what is the primary group name of a particular user.
How to do this ?
Maybe with groups cmd ? (first group name in line, is the primary group)
thx for help. (2 Replies)
Hi Experts,
I am new to scripting. We have around 400 Linux servers in our environment. I want to add a new user to a perticular group on all the servers using SSH.
Requirements:
1) Need to take the server names from a text file.
2) Login into each server and check whether perticular... (1 Reply)
Hi,
I have a file with usernames, and the comment section, e.g :
Data removed by request of sanchitadutta91, 20 May 2020
I need to add these users into a server. Is it possible to use a script to create the users, together with the comment ?
From the commandline to add one user, the... (2 Replies)
Discussion started by: anaigini45
2 Replies
LEARN ABOUT DEBIAN
ldapgid
ldapgid(1) General Commands Manual ldapgid(1)NAME
ldapgid - displays a group's list of IDs the way ldapid(1) does.
SYNOPSIS
ldapgid [-P]<groupname|gid>
DESCRIPTION
The following is displayed : gid=gidNumber(cn) users(primary)=uidNumber(uid)[,uidNumber(uid)...] users(secondary)=uidNumber(uid)[,uidNum-
ber(uid)...].
users(primary) lists users having the group declared as their primary group. users(secondary) lists users using the group as a secondary
one.
OPTIONS
<groupname | gid>
Group name or GID of a group to show information about.
[-P] Display group information as a /etc/group file entry.
SEE ALSO ldapid(1), lsldap(1), ldapfinger(1), ldapscripts(5).
AVAILABILITY
The ldapscripts are provided under the GNU General Public License v2 (see COPYING for more details). The latest version of the ldapscripts
is available on : http://contribs.martymac.org
BUGS
No bug known.
January 23, 2009 ldapgid(1)