On Wed, Apr 29, 2009 at 8:26 AM, Rob McBroom <mailingli...@skurfer.com> wrote: > > On 2009-Apr-29, at 10:41 AM, Nigel Kersten wrote: > >> On Wed, Apr 29, 2009 at 5:24 AM, Rob McBroom >> <mailingli...@skurfer.com> wrote: >>> >>> You can get an example for your particular system by running this as >>> root: >>> >>> ralsh user username >> >> Note that to read an existing password hash, you'll probably need to >> be root on most OSes. This is the case at least for OS X. > > I probably should have said to run the command "as root". Oh, wait… ;)
hah. I did actually read that, but I didn't express myself well. I meant to point out explicitly that on OS X say, if you run this as non-root, you'll get a user resource definition back, it just won't contain the password. ie nigelk$ ralsh user testuser user { 'testuser': comment => 'testuser', home => '/Users/testuser', shell => '/bin/bash', uid => '123', gid => '123', ensure => 'present' } nigelk$ sudo ralsh user testuser user { 'testuser': comment => 'testuser', password => "..........", home => '/Users/testuser', shell => '/bin/bash', uid => '123', gid => '123', ensure => 'present' } > > -- > Rob McBroom > <http://www.skurfer.com/> > > > > > -- Nigel Kersten nig...@google.com System Administrator Google, Inc. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---