ktb wrote:
> 
> I don't know how but every file and directory has recursively changed in
> my home directory.  What has changed is group and owner of all files.
> they are all now "1000".
> 
> I can change the owner to "kent" but not the group.  When I try to do
> that I get - "invalid group name 'kent'".   I looked in /etc/group and
> there is a line - users:x100:
> I added kent -
> users:x:x100:kent
> 
> Still can't change files in /home to group "kent".
> 
> I do not know what I could have done that all the files in my home
> directory would change in such a way.  How could this happen?  How can I
> add group kent?  How can I do this recursively to the whole directory?

  what you did is added the kent to group users, to create a group kent
you need something like this:

kent:x:x100:kent

  which would create group kent with one user (it's kent, but I guess
you guessed that:-).

  I think there is addgrp or addgroup or some other utility that creates
a new group.

  instead of adding yourself to kent group in /etc/groups file you can
add the kent group as your primary group in /etc/passwd (see format of
passwd), I think that's a better way to do it.

        erik

Reply via email to