Red Hat Bugzilla – Bug 458143
usermod relabeling old home dir on change
Last modified: 2012-12-03 07:26:53 EST
Description of problem:
When changing a user's home directory using 'usermod', it seems to be calling 'restorecon -R' on the old home directory. This causes issues when the old home directory doesn't exist for some reason - especially if done during a kickstart.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. usermod -d / ident (ident's home dir is set to /home/ident by default, which doesn't exist)
/sbin/restorecon: error while labeling files under /home/ident
usermod: warning: unable to relabel the homedir /home/ident for ident.
*** This bug has been marked as a duplicate of bug 494575 ***