Issue #16475 has been updated by eric sorenson.

Status changed from Unreviewed to Closed
Assignee set to eric sorenson

Managehome just delegates through to the useradd command, adding the `-m, 
--create-home` flag to the commandline. As the docs say, it doesn't 
automatically create a File resource for the directory and check/set properties 
on it.  You can use a defined type to wrap your user management + homedir 
creation with one puppet directive, but I don't think it would be good to write 
code to bolt this directly onto the 'managehome' property.


----------------------------------------
Bug #16475: Doesn't change gid of homedir on managehome true
https://projects.puppetlabs.com/issues/16475#change-72740

Author: Thorben Went
Status: Closed
Priority: Normal
Assignee: eric sorenson
Category: agent
Target version: 
Affected Puppet version: 2.7.19
Keywords: group gid home homedir change
Branch: 


Hi,

I've come across the problem that on my agent (CentOS 6.3) the gid of the users 
homedir isn't changed by puppet. managehome is set inside the user resource.

To reproduce:<br>
1. Create a User with user-resource (set managehome => true)<br>
2. Create a new group <br>
3. Add gid to user-resource with gid of step 2<br>
4. Change gid (and uid) to your gid of step 2<br>

Before changeig gid:
<pre>
[root@puppetcli ~]# cat /etc/passwd | grep blabla
blabla:x:5555:5555:Managed by Puppet:/home/blabla:/bin/bash
[root@puppetcli ~]# stat /home/blabla/ | grep 5555
Access: (0700/drwx------)  Uid: ( 5555/  blabla)   Gid: ( 5555/  blabla)</pre>

After changing gid:
<pre>[root@puppetcli ~]# cat /etc/passwd | grep blabla
blabla:x:5556:5556:Managed by Puppet:/home/blabla:/bin/bash
[root@puppetcli ~]# stat /home/blabla/ | grep 5555
Access: (0700/drwx------)  Uid: ( 5556/  blabla)   Gid: ( 5555/  blabla)</pre>



-- 
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