On 2009-Apr-29, at 6:22 PM, josbal wrote:

> If a user1 on server1 has uid 502 and in puppet i define user1 to have
> uid 500. When i add server1 to puppet, will puppet be able to change
> all the file permissions associated with user1? Or will it orphan all
> of  user1's files?

On many systems, if you change the UID with usermod, it will go into  
the user's home directory and change ownership of all files there. It  
will not get all files on the system, but it's something. So, if your  
Puppet client is such a system, and if Puppet is using usermod as the  
back-end provider, it might cover the majority of files.

I imagine you could also come up with an Exec that runs `find` to look  
for the old UID under certain conditions, but it's probably better to  
do such things by hand since they shouldn't be common.

-- 
Rob McBroom
<http://www.skurfer.com/>

The magnitude of a problem does not affect its ownership.






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to