According to Ken Russell: While burning my CPU.
>
> Dear helping people, please give me a clue about this. I have read the man
> and tried several permutations of commands, but I still haven't got it.
> Here is the problem:
>
> I inherited a system with user accounts. The past administrator created
> user accounts with every user showing their own unique group in the /home
> dir. I want to organize the users into different groups. I have found how
> to do that when I create a new user account, by doing...
>
> useradd joes -g users
>
> However, I haven't figured out how to change the group designation (GID?)
> of the users who already have accounts, to "users" (or whatever).
>
> I would like to change user accounts from:
>
> drwx------ 2 janice janice 1024 Oct 25 19:20 janice
>
> to:
>
> drwx------ 2 janice users 1024 Oct 25 19:20 janice
cd /home
chgrp -R users janice
That will change it recursivly, however there could be other ways.
>
> I've fiddled with the /etc/group file and tried several things, but I just
> can't get it. When I try something like:
>
> %ls -l
> drwx------ 2 janice janice 1024 Oct 25 19:20 janice
> %groupmod -n janice users (trying to change janice's group from janice to
> users)
>
> I get a core dump! Very exciting, but clearly, this is not the way to do it!
Core dumps are files for debugging perpouses, and are quite large, normaly
around 300k so if you are getting these a lot (with other ommands as well)
you could possably fill you disk quicker than you think. Memory problems are
one big cause of "core dumps", a way to track down what is causeing them is
to use 'gdb -c core' (of course in the directory where the file "core" is)
that will tell you which program caused the dump, further infomation can be
gained with gdb to analise the data, man gdb for howto do that.
>
> While we are at it, I also would like to change the default file
> permissions for new users I create. I know there must be some kind of
> template file that is used set these permissions. Could someone please tell
> me which file it is?
>
> Thanks very much for your invaluable help!!!
>
> Viva Linux!
>
--
Regards Richard.
[EMAIL PROTECTED]