GROUPS(1) General Commands Manual GROUPS(1)NAME
groups - show group memberships
The groups command shows the groups to which you or the optionally specified user belong. Each user belongs to a group specified in the
password file /etc/passwd and possibly to other groups as specified in the file /etc/group. If you do not own a file but belong to the
group which it is owned by then you are granted group access to the file.
When a new file is created it is given the group of the containing directory.
SEE ALSO setgroups(2)FILES
More groups should be allowed.
4.2 Berkeley Distribution April 29, 1985 GROUPS(1)
Check Out this Related Man Page
groups(1) General Commands Manual groups(1)NAME
groups - Displays your group membership
The groups command writes to standard output the groups to which you or the specified user belong. The Tru64 UNIX operating system allows
a user to belong to many different groups at the same time.
Your primary group is specified in the /etc/passwd file. Once you are logged in, you can change your active group with the newgrp shell
command (see sh). When you create a file, its group ID is that of your active group.
Other groups that you belong to are specified in the /etc/group file. If you belong to more than one group, you can access files belonging
to any of those groups without changing your primary group ID. These are called your concurrent groups.
The /etc/passwd and /etc/group files must be on the same node.
To determine your group membership, enter: groups
The groups to which you belong will be displayed. For example: devel prod
Contains group information. Contains user information.
Commands: csh(1), ksh(1), sh(1)
Functions: initgroups(3), setgroups(2)groups(1)
I want to know how we can add a new group in solaris. As per my understanding this is done by adding a new entry in /etc/groups file (or by using groupadd command which will also add the entry in the groups file). But when I use group command to see the groups to which I belong, it shows my userid... (7 Replies)
I created UNIX groups - oinstall, dba and UNIX user - oracle for the installation of Oracle 10g. But I might did something incorrectly. Oracle user account didn't created properly. How to remove these UNIX groups and user so that I can start over again to create them properly. Thanks. (7 Replies)
I want to give a group a read access to a directory tree, but i want the group to be defined by the email account. here's the details:
I have a punch users who use e-mail addresses of "*@blue.com".
I want give this group of "*@blue.com" a read access to a directory tree so every one who... (8 Replies)
Hello all. I have a perplexing problem
I have an AIX 5.1 system on an EMC SAN.
This system had been on a CX400 SAN for several years. The system was migrated to a CX700 just over a week ago. The migration consisted of utilizing on of the HBAs in the system and connecting to both SANs
... (9 Replies)
I am currently trying to edit an ldif file. The ldif specification states that a newline followed by a space indicates the subsequent line is a continuation of the line. So, in order to search and replace properly and edit the file, I open the file in textwrangler, search for "\r " and... (14 Replies)
Security users in AIX don’t have permission to change the group of the user thru Smitty Users
When they try to change the group of the users to any group they'll get permission denied
Security profile in Smitty :
User... (10 Replies)
How do I remove a user from a group? I'm using the usermod command but its not working.
I have a user "abc" who is a member of the groups root and other. I'm trying to remove him from the group "other" (using CLI) which is his secondary group but it's not working.
How do I do this? Is there any... (11 Replies)
hi!i want to print all registered users(theres a difference for registered users and logged users right?we can print logged users using who command but registered?) in the system,the groups and my current running processes(with the command ps -ef , ok i can get all the running processes in the... (13 Replies)
I'm trying to list a bunch of users' groups and filter them out to be space delimited like this:
Using the "id" command they would look like this:
uid=39693(user1) gid=14(dev) groups=3610(a_dev),14(dev)
uid-39471(user2) gid=25(testing) groups=2810(prod),25(testing)
I want the... (13 Replies)
Could anyone please suggest how we can check in Linux if a user or a group name is already existing? In case of a user the command should also be able to specify the user with a given directory and shell. We can of course check this using a grep command but since that is just a pattern match,... (12 Replies)
I am having trouble with regex capturing groups, For Ex :
I am having a file with
ABC CDLF SFSDFK PRIMARY INDEX(XYZ,DEF,GHI);
XYZ FLJ SDFKLD; PRIMARY INDEX(ABC);
BHI SDKFLFLSFD PRIMARY INDEX (QWE , RTY , LHJ);
My output should be :
BHI ... (10 Replies)
I am having an issue with getting the proper group settings on NFS-shared directories.
NFS server, NFServe, nfs-shares hundreds of project directories...running Solaris 10 latest patches/updates.
SAS server, SAServe, statistical analysis server running on RedHat 7 with latest kernel/patches/etc.... (14 Replies)
OS : SunOS 5.8
I am trying to add a user ad3059 to the following groups,
A B C D ( four groups A,B,C,D)
When i use usermod command and add the user to the above groups,
and go to
> groups ad3059
other C D
It doesnt show A and B groups and shows it as other.Please advice on how... (13 Replies)
I have to provide a listing of all usernames and group assignments on Linux servers running SLES 12 SP 3. I am trying to automate this via a #for loop. It is not doing as desired and could use a little assistance. Here is the code:
for uname in 'cat $(hostname)_unlist.txt'
do... (8 Replies)