Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

groupdel(8) [redhat man page]

GROUPDEL(8)						      System Manager's Manual						       GROUPDEL(8)

NAME
groupdel - Delete a group SYNOPSIS
groupdel group DESCRIPTION
The groupdel command modifies the system account files, deleting all entries that refer to group. The named group must exist. You must manually check all filesystems to insure that no files remain with the named group as the file group ID. CAVEATS
You may not remove the primary group of any existing user. You must remove the user before you remove the group. FILES
/etc/group - group information /etc/gshadow - secure group information SEE ALSO
chfn(1), chsh(1), passwd(1), groupadd(8), groupmod(8), useradd(8), userdel(8), usermod(8) AUTHOR
Julianne Frances Haugh (jockgrrl@ix.netcom.com) GROUPDEL(8)

Check Out this Related Man Page

GROUPADD(8)						      System Manager's Manual						       GROUPADD(8)

NAME
groupadd - Create a new group SYNOPSIS
groupadd [-g gid [-o]] [-r] [-f] group DESCRIPTION
The groupadd command creates a new group account using the values specified on the command line and the default values from the system. The new group will be entered into the system files as needed. The options which apply to the groupadd command are -g gid The numerical value of the group's ID. This value must be unique, unless the -o option is used. The value must be non-negative. The default is to use the smallest ID value greater than 500 and greater than every other group. Values between 0 and 499 are typi- cally reserved for system accounts. -r This flag instructs groupadd to add a system account. The first available gid lower than 499 will be automatically selected unless the -g option is also given on the command line. This is an option added by Red Hat. -f This is the force flag. This will cause groupadd to exit with an error when the group about to be added already exists on the sys- tem. If that is the case, the group won't be altered (or added again). This option also modifies the way -g option works. When you request a gid that it is not unique and you don't specify the -o option too, the group creation will fall back to the standard behavior (adding a group as if neither -g or -o options were specified). This is an option added by Red Hat. FILES
/etc/group - group account information /etc/gshadow - secure group account information SEE ALSO
chfn(1), chsh(1), passwd(1), groupdel(8), groupmod(8), useradd(8), userdel(8), usermod(8) AUTHOR
Julianne Frances Haugh (jockgrrl@ix.netcom.com) GROUPADD(8)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Getting information from /etc/group

How can I retrieve the group id of an entry in the /etc/group file given the group name? I tried using cut and grep but cant get around the problem.. I think this problem can be solved using these commands but I dont know how (I am a newbie at this) (11 Replies)
Discussion started by: sleepster
11 Replies

2. UNIX for Dummies Questions & Answers

Adding an extension to a group of filenames

Hi - I'm stuck. I have a group of text files created using the split command. My files have the names "projectaa", "projectab", "projectac", etc. What I want to do is add the extension ".txt" to each file. I think I've got part of a sed command together, but I'm stuck on my regex - I keep getting... (9 Replies)
Discussion started by: pepintheshort
9 Replies

3. UNIX for Dummies Questions & Answers

group by in files :-)

My file looks like: X^~^12^d X^~^19^d Y^~^5^d Y^~^10^d Y^~^11^d Z^~^14^d I need a script that will "group by" the first field and Concatenate the values. My output should be: X^~^12,19^d Y^~^5,10,11^d Z^~^14~d Does anyone have any idea ? (10 Replies)
Discussion started by: hellsd
10 Replies

4. AIX

volums group

Dear all I need command to show me the state for volums group,Is active or not? thanks (6 Replies)
Discussion started by: magasem
6 Replies

5. UNIX for Advanced & Expert Users

tracking user action

Hi, we are using solaris8. we have some files disappear. I would like to know how to track who and when the files was remove ??? thanks, (7 Replies)
Discussion started by: xitrum
7 Replies

6. Shell Programming and Scripting

remove the first line of all files

I want to remove the first line of all files in a directory with .dat extension. Can any one help me on this with a small script. I want the file names to remain same . (8 Replies)
Discussion started by: dineshr85
8 Replies

7. Solaris

how to remove permissions for 'others' only

Hi expert, I want to remove 'others' permission completely while maintaining 'owner' and 'group'. Thanks. -rwxrw---- -rwxrw--w- -rwxrwxr-x -rwxrwxrwx -rwxrwxr-x -rwxrwxr-x -rwxrw---- -rwxrw---- -rwxrw---- -rwxrw---- drwxrwxr-x drwxr-x--- -rwxrwxr-x -rwxrw---- -rwxrwxr-x (9 Replies)
Discussion started by: skully
9 Replies

8. Shell Programming and Scripting

need help in remove group of files

i have some 350 files in a dir: i want to remove them in one shot, ls -ltr | grep 'Sep 15' | head -350 the above command gives me those 350 files i need to remove them,how to implement remove logic here in this command? i can get those 350 files using the above command only and therefore... (6 Replies)
Discussion started by: ali560045
6 Replies

9. Solaris

Removing users from groups

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)
Discussion started by: the_red_dove
11 Replies

10. UNIX for Dummies Questions & Answers

find & remove characters in filenames

I have a group of files in different directories with characters such as " ? : in the file names. How do I find these files and remove these characters on mass? Thanks (19 Replies)
Discussion started by: barrydocks
19 Replies

11. Shell Programming and Scripting

Sed command help (appending)

I need to append a user to the end of a group in the /etc/group file ftp::49:user1,user2... what I want to to add a new user to the group file so that I won't have to open it up and append manually and I can't user "usermod" it fails this user will be coming from a variable (11 Replies)
Discussion started by: slufoot80
11 Replies

12. Solaris

Help understanding this SunOs 5.10 Filesystem.

Hi guys! First of all thanks for reading. I was the "lucky winner" to be in charge of an old a$$ SunOS 5.10 server at work. This server is going to be used to store files and I need to clean it up to make some room. I need help understanding this Filesystem since Im a not too familiar with... (7 Replies)
Discussion started by: RedSpyder
7 Replies

13. UNIX for Dummies Questions & Answers

Delete files beginning with *

Hi, I had created a whole bunch of files which are like *, *1, *2 etc... Can someone tell me if there is a way to batch remove the whole directory? I tried the solution which goes one level up and removes the file, but that doesn't seem to work for files beginning with a *. Thanks in... (28 Replies)
Discussion started by: jamie_123
28 Replies

14. UNIX for Dummies Questions & Answers

Read authorization for everybody on sub-directory owned by root

Hello. On my family laptop, I have a directory named /local. It is owned by root. I want to create a sub-directory named documents ( /local/documents ). I want to exclude exec for every body in that directory I want every authenticated linux user can create a sub directory ( ie :... (7 Replies)
Discussion started by: jcdole
7 Replies

15. UNIX for Dummies Questions & Answers

Recursive remove files

(8 Replies)
Discussion started by: spirospap
8 Replies