GROUPMOD(8) BSD System Manager's Manual GROUPMOD(8)NAME
groupmod -- modify an existing group on the system
SYNOPSIS
groupmod [-ov] [-g gid] [-n newname] group
DESCRIPTION
The groupmod utility modifies an existing group on the system. See group(8) for more information about EXTENSIONS. The options are as fol-
lows:
-g gid Give the numeric group identifier to be used for the new group.
-n new-group-name
Give the new name which the group shall have.
-o Allow the new group to have a gid which is already in use for another group.
-v Enable verbose mode - explain the commands as they are executed. This option is included if built with EXTENSIONS.
EXIT STATUS
The groupmod utility exits 0 on success, and >0 if an error occurs.
SEE ALSO group(5), group(8), user(8)HISTORY
The groupmod utility first appeared in NetBSD 1.5. It is based on the addnerd package by the same author.
AUTHORS
The groupmod utility was written by Alistair G. Crooks <agc@NetBSD.org>.
BSD November 7, 2005 BSD
Check Out this Related Man Page
GROUP(8) BSD System Manager's Manual GROUP(8)NAME
group -- manage group information on the system
SYNOPSIS
group add [options] group
group del [options] group
group info [options] group
group mod [options] group
DESCRIPTION
The group utility acts as a frontend to the groupadd(8), groupmod(8), groupinfo(8), and groupdel(8) commands. The utilities by default are
built with EXTENSIONS. This allows for further functionality.
For a full explanation of the options available, please see the relevant manual page.
EXIT STATUS
The group utility exits 0 on success, and >0 if an error occurs.
SEE ALSO group(5), groupadd(8), groupdel(8), groupinfo(8), groupmod(8)HISTORY
The group utility first appeared in NetBSD 1.5. It is based on the addnerd package by the same author.
AUTHORS
The group utility was written by Alistair G. Crooks <agc@NetBSD.org>.
BSD November 7, 2005 BSD
hi,
i have in my /etc/group an unix group full.
i need to add new user in this group.
users need to have the same gid and the same name...
is it possible ?
can i create a concatenation with an other group or something else ?
thx (1 Reply)
Hi!!,
I am on HP UX -11. I have created a new group and want to assign some the users to this group without changing their existing group ( The new group is the secondary group for them)
Any ideas how to do it??
SAM doesnt seem to be working.. Any way of doing it from command line??
... (1 Reply)
I have encountered a serious error in /etc/group. In some cases when i'm trying to read /etc/group, i read the first line and then if i press <ENTER> i can see the rest of the file. So, when i try a new installation and have a copy of the old /etc/group, and try to read and save it, it goes bye... (2 Replies)
Hi!
I need to know what is the risk involved if a user with UID >100 is attached to a group with gid =1 .i.e., a user is attached to a priviliged group in AIX .
Kindly let me know what security implication can arise in this case?
Early reply in this regard will be highly appreciated. (1 Reply)
Hi,
Can you explain little bit with example regarding SED utility in UNIX?
How iit is different then grep command?
Thanks in advance.
Malay (4 Replies)
a script, cheer that prints its parameter as shown in the example below.
eg:
$ cheer U N I X
Give me a U!
U!
Give me a N!
N!
Give me a I!
I!
Give me a X!
X!
#!/bin/sh
for letter
do
echo "Give me a $letter!";echo "$letter!"
done
this is the code i used for the above script (2 Replies)
hi,
which Unix/C function can i use to retrieve all group names with a particular group id?
The following C code prints out the group id number of a particular group name:
------------------------------------------------------------------------
#include <stdio.h>
#include <grp.h>
int... (3 Replies)
Hi All,
Second time to post on this group :)
I'm pulling my hair now 'coz I'm so dumb to produce this requirement.
Requirement: I want to run a utility by limiting the no. inside my process (mov##) to be able to use in multi streaming.
Here is my script:
--Input: "user_list.txt"... (0 Replies)
I am working on a large program which is always up and must run in as many Linux flavors as possible, i.e. be portable. I have created a number of general utility functions for common tasks it needs to do, and one of these utility functions goes out to the shell to give a Linux command and return... (5 Replies)
Hiya folks,
I have decided to change GID of a existing group to resolve a clash in IDs. There are files/directories having GID permissions on the said ID.
Planning to change the ID using groupmod. Then run a find command to check the group ownership and to change it.
Should this be good ?. Can... (1 Reply)
Hi,
i backed up a test LPAR using mksyb utility on AIX. and transferred it to NIM server via NFS.
I want to create a SPOT using this mksysb . Please explain me the procedure. And got something online, but that procedure is different.
Please respond. (5 Replies)
Hello folks,
I am facing a weird issue on one of the red hat linux 5 box. There is an oracle id which i want to change the primary group. Currently the primary group id is 16600, I did changed it to 16601 using below command:
usermod -g 16601 oracle
But it did not changed. I have tried... (3 Replies)
Hi,
I need to do some section/group sorting. At the moment, I get around it by grep group by group and then re-directing to the same 'final' output file.
Below is what's been sorted so far based on the second field
$ awk -F"," '{ { print $5 " == " $6 } }' /tmp/x.csv | grep -v "^env" | grep... (2 Replies)
An id was a part of a particular user group. All of a sudden that id was removed from that group, because of which many things failed. How do I find out when/who modified the id settings? (2 Replies)