[Pkg-shadow-devel] usermod -g home dir directory group ownership change

Tomas Mraz tmraz at redhat.com
Thu May 28 07:31:41 UTC 2015

it was recently found by some customers of Red Hat that the usermod -g
modifies group ownership of files inside the user's home directory. This
was introduced in the 4.1.5 release. It could be problematic though if
the user is a system user. Many system users can have home directory set
to for example / and then it would modify all files whose gid is the old
primary gid of the user in the tree including for example nfs mounts. We
would like to make this behavior optional based on some command line
option or at least some login.defs setting.

What do you think?
Tomas Mraz
No matter how far down the wrong road you've gone, turn back.
                                              Turkish proverb
(You'll never know whether the road is wrong though.)

More information about the Pkg-shadow-devel mailing list