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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)