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