FedoraThis forum is for the discussion of the Fedora Project.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
problem to remove user from group, in fedora core 3
Thanks for your mail... problem here i am facing is i couldn't find a command using which i can remove user form a group.
In SUSE 9.2 we have the command "groupmod -R user group", but in redhar we have the groupmod only for remaning the groupname of a particular grpid.
But in redhat for adding user to a group we can use the command "usermod -G group user".. smae will also work in SUSE 9.2.....
is there any command in redhat/fedora core 3 which can remove user from a group from command line ....
but It will be problem when i want to remove a user which is a member of about 300 groups ... then i have to concat the list of groups which i don't want to change and pass it to usermod -G ... which is like more memory consuming at the time executing th command when we pass the usermod -G "grp list" user to a system() fn.....
i was looking if there is any other command in FC3 like groupmod -R which is available in SUSE Linux fro removing a user from a group..... also a command in FC3 for adding user to group like groupmod -A in SUSE
Last edited by bnarenderraju; 07-14-2005 at 06:12 AM.
The only easy way is using a text editor to edit the /etc/passwd file. Open the file, search for the username and then delete the group from that line. Every user has his own line, i believ it something like username:UID:GID:groups:shell:home_directory.
Maybe I'm mistaken, but isn't there, where you can edit each user. Or can you only edit the users initial group...
If you want to do this by editing a file, you should edit /etc/group, not /etc/password. At the end of each group definition, there is a list of members of that group. Simply remove the username from the group.