Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

groupmod(8) [netbsd man page]

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

GROUPINFO(8)						    BSD System Manager's Manual 					      GROUPINFO(8)

NAME
groupinfo -- displays group information SYNOPSIS
groupinfo [-ev] group DESCRIPTION
The groupinfo utility retrieves the group information from the system. The groupinfo utility is only available if built with EXTENSIONS. See group(8) for more information. The following command line options are recognised: -e Return 0 if the group exists, and non-zero if the group does not exist, on the system. No information is displayed. This form of the command is useful for scripts which need to check whether a particular group name or gid is already in use on the system. -v Perform any actions in a verbose manner. The group argument may either be a group's name, or a gid. EXIT STATUS
The groupinfo utility exits 0 on success, and >0 if an error occurs. FILES
/etc/usermgmt.conf SEE ALSO
passwd(5), group(8) HISTORY
The groupinfo utility first appeared in NetBSD 1.5. It is based on the addnerd package by the same author. AUTHORS
The groupinfo utility was written by Alistair G. Crooks <agc@NetBSD.org>. BSD
November 7, 2005 BSD
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

group limit

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)
Discussion started by: farzolito
1 Replies

2. UNIX for Dummies Questions & Answers

Assigning existing users to a secondary group

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)
Discussion started by: jyotipg
1 Replies

3. UNIX for Advanced & Expert Users

/etc/group problems

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)
Discussion started by: psychofredy
2 Replies

4. AIX

Re: User assigned to privileged group

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)
Discussion started by: faraz82
1 Replies

5. UNIX for Dummies Questions & Answers

Sed utility

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)
Discussion started by: malaymaru
4 Replies

6. Shell Programming and Scripting

easy script

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)
Discussion started by: problems
2 Replies

7. UNIX for Dummies Questions & Answers

What does ls * do

Hi Can anyone please explain what this commands does? Thanks. (2 Replies)
Discussion started by: trivektor
2 Replies

8. UNIX for Advanced & Expert Users

retrieving all group names with a given group number

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)
Discussion started by: Andrewkl
3 Replies

9. Shell Programming and Scripting

How to group the output w/ limit

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)
Discussion started by: alvingo
0 Replies

10. Programming

Shelling Out to Give a System Command Drains Free Memory

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)
Discussion started by: BrandonShw
5 Replies

11. Solaris

Changing groups - and problems

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)
Discussion started by: ossupport55
1 Replies

12. AIX

Creating NIM SPOT using an existing mksysb from cliet

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)
Discussion started by: System Admin 77
5 Replies

13. UNIX for Advanced & Expert Users

RHEL 5.11 - gid issue

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)
Discussion started by: snchaudhari2
3 Replies

14. UNIX for Beginners Questions & Answers

HELP on 'sectional' or 'group' sorting

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)
Discussion started by: newbie_01
2 Replies

15. UNIX for Beginners Questions & Answers

How to check when a group was removed for an id?

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)
Discussion started by: ggayathri
2 Replies