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
USERDEL(8) System Manager's Manual USERDEL(8)NAME
userdel - Delete a user account and related files
SYNOPSIS
userdel [-r] login
DESCRIPTION
The userdel command modifies the system account files, deleting all entries that refer to login. The named user must exist. The options
which apply to the userdel command are:
-r Files in the user's home directory will be removed along with the home directory itself and the user's mail spool. Files located in
other file systems will have to be searched for and deleted manually.
FILES
/etc/passwd - user account information
/etc/shadow - secure user account information
/etc/group - group information
CAVEATS
userdel will not allow you to remove an account if the user is currently logged in. You must kill any running processes which belong to an
account that you are deleting. You may not remove any NIS attributes on an NIS client. This must be performed on the NIS server.
SEE ALSO chfn(1), chsh(1), passwd(1), groupadd(8), groupdel(8), groupmod(8), useradd(8), usermod(8)AUTHOR
Julianne Frances Haugh (jockgrrl@ix.netcom.com)
USERDEL(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)