On Mon, Jun 13, 2011 at 12:48 PM, vella1tj <vella...@gmail.com> wrote:
> so the copying way of the user template is prolly not the best way? > That's basically one of the underlying things createhomedir does, but you're not going to actually be setting up directories with the correct permissions/ACLs, which could be a problem. Especially in later versions of OS X, createhomedir problems have often been a symptom of another directory service related issue in my experience, so I'd definitely do some debugging first. > > > On Jun 13, 3:24 pm, Nigel Kersten <ni...@puppetlabs.com> wrote: > > On Mon, Jun 13, 2011 at 11:05 AM, vella1tj <vella...@gmail.com> wrote: > > > Unfortunately it is still not creating the Home folder but it is at > > > least creating the User and assigning it the proper values!!:D > > > > > I'm going to try doing a mdir to create the home folder. Let me know > > > what you think about that, here is what I have right now. > > > > > user {'user': > > > uid => 501, > > > gid => 'staff', > > > #comment => "some random comment", > > > ensure => present, > > > home => '/Users/user', > > > shell => '/bin/bash', > > > # provider => user_role_add, > > > password => 'Hash, > > > } > > > > > exec {"/usr/sbin/createhomedir -c -l -u user": > > > subscribe => User[user], > > > refreshonly => true, > > > } > > > > > The weird thing is even manually using the createdir command is not > > > working. I thought maybe their was something wrong with the OS > > > installation because its on a macbook air so I tried it on my actual > > > Imac work computer. I deleted the local admin account then ran the > > > command it created the user but not the home folder still. I forget to > > > set myself as admin so I had to have my manager su user then create > > > the folder and he was able to. So it's def the script that I wrote > > > that is not working. Thanks for your time again Nigel I do appreciate > > > it. > > > > Sometimes createhomedir is just buggy. :( > > > > If you do "man DirectoryService" you'll see the instructions for sending > > USR1 signals to the DS process for debugging and there might be something > > that leaps out when you interactively run createhomedir for the user. > > -- > 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. > > -- Nigel Kersten Product, Puppet Labs @nigelkersten -- 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.