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.

Reply via email to