Bug 458143

Summary: usermod relabeling old home dir on change
Product: Red Hat Enterprise Linux 5 Reporter: Jason Bradley Nance <jbnance>
Component: shadow-utilsAssignee: Peter Vrabec <pvrabec>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5.2CC: dwalsh, mmalik
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-10-24 20:41:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jason Bradley Nance 2008-08-06 17:16:20 UTC
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):
4.0.17-13.el5

How reproducible:
Always.

Steps to Reproduce:
1. usermod -d / ident  (ident's home dir is set to /home/ident by default, which doesn't exist)
2. 
3.
  
Actual results:
/sbin/restorecon:  error while labeling files under /home/ident
usermod: warning: unable to relabel the homedir /home/ident for ident.

Expected results:


Additional info:

Comment 1 Subhendu Ghosh 2009-10-24 20:41:36 UTC

*** This bug has been marked as a duplicate of bug 494575 ***