I'm using SAM to add users on an HP and they're adding fine. But in /etc/group it only lists the group names. It's not adding the users in there. Is there a way to have them put in there without going into SAM and modifying the group and adding them? I guess what I want to happen is when I add... (1 Reply)
Hi All,
Does anyone know if there is a maximum limit to the number of users that can be assigned to a group. I currently have on a production server 900+ users in 1 group. I know some of these users are no longer valid as we only have 500 employees and not all employees use this application.
... (4 Replies)
Hi ,
I want to write a Unix script which can send an automatic email to the group when my job is completed.I'm trying the following
Mail -s "test" <groupname> << EOD
>Completed
>EOD
With this i'm not able to send an email to group..Any ideas?
Thanks in Advance (1 Reply)
Hi,
Can any one tell me is it possible to setup private key public key pairing(SSH ) for a group of users , instead of setting it up for individual users ?
Eg:
Say i have 3 users A,B and C and i want the users to connect to SERVER1. instead of generating public private keys for each user , is... (3 Replies)
Im trying to put all the groups in into a variable called $GROUP, however in /etc/group there are also lotsa users. And the GID of group can differ as it can be set, this there is no specific range, how can i put all the names of the groups into that variable? (3 Replies)
Hello
They have ordered to me that makes several small utilities in C/C++ for the servants, among them a small program in C/C++ to generate a file HTML with the groups of that servant and in addition that is the corresponding users of that group.
For example of a group:
Group: Sys Members:... (2 Replies)
hi guys
I am trying to display a list of groups and the respective users:
Group1 : user1 user2 user3 ....
the closest thing I get is
echo " "; echo "Group Users "; echo " "; cat /etc/group |grep | grep -v nfswhich I really don't since I want to remove the other stuff like x : and... (4 Replies)
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 SUNOS
groups
groups(1) User Commands groups(1)NAME
groups - print group membership of user
SYNOPSIS
groups [user...]
DESCRIPTION
The command groups prints on standard output the groups to which you or the optionally specified user belong. Each user belongs to a group
specified in /etc/passwd and possibly to other groups as specified in /etc/group. Note that /etc/passwd specifies the numerical ID (gid)
of the group. The groups command converts gid to the group name in the output.
EXAMPLES
The output takes the following form:
example% groups tester01 tester02
tester01 : staff
tester02 : staff
example%
FILES
/etc/passwd
/etc/group
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO group(4), passwd(4), attributes(5)SunOS 5.10 14 Sep 1992 groups(1)