On Wed, Jul 16, 2008 at 2:47 PM, ilampooranan <[EMAIL PROTECTED]> wrote:
> Hi GentleMen, > i am learning linux in Vibrant Technologies. if possible any one suggest me > the below queries. > i added one user called Sanjeevan and added to the group > called Project. i want to remove the user from Project group. any command is > there to remove the user from the above group. Actually i edited /etc/group > file. i want to know whether there is command to perform the task. Kindly > suugest me. > Regards, > Ilam > > [Non-text portions of this message have been removed] > > > There are a few options 1.You can run the following command to remove user /usr/bin/gpasswd -d sanjeevan project 2. usermod -G sanjeevan `id -Gn sanjeevan| sed 's/project//'| tr -t " " ","` The above can be done if the user is a member of more than one group and only needs to be removed from the group "project" 3. Run command vigr This is again manual editing of /etc/group file, but will also open /etc/gshadow file to edit once its saved -Steeve [Non-text portions of this message have been removed]
