Issue #4335 has been updated by Cody Herriges.

Status changed from Unreviewed to Rejected

I was not able to reproduce this issue on 0.25.4 or 2.6.1rc2.  The actual 
modification of the ownership of the user home directory is handled by the 
useradd provider which is calling the linux command usermod.  The actual 
changing of the ownership is built into usermod and as far as I can tell 
working as intended for UIDs.  The man page for usermod says nothing about 
chgrping when the default login group for the user changes.

My suggestion would be to wrap a user and a file resource up in a defined 
resource type to emulate the behavior you wish to accomplish with the 
management of the GID but as for UIDs, things are functioning properly in my 
testing.
----------------------------------------
Bug #4335: Managing home directory 
http://projects.puppetlabs.com/issues/4335

Author: Anandha Krishnan
Status: Rejected
Priority: Normal
Assigned to: 
Category: 
Target version: 
Affected version: 0.25.4
Keywords: 
Branch: 


I'm not sure if this is a bug when managing an existing user through puppet 
doesn't seem to update the home directory permissions. Does it use usermod to 
update UID/GID if they are different? Usermod on Unix should change the 
owner/group for the home directory too. Please help.

Here my user resource and the user existed with different UID/GID and puppet 
updated the correct IDs but didn't change the permission on the home directory 
with the new UID/GID. I'm aware that I can use a file resource to make this 
happen but it would be nice to have a fix. I'm running puppet 0.25.4 on Cent OS 
5.4.

    user { 'abc':
        allowdupe => false,
        ensure    => present,
        gid => '10000',
        uid => '1000',
        home => '/home/abc',
        shell => '/bin/bash',
        comment => 'ABC User',
        managehome => 'true',
    }

Anandha



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to