FreeBSD user management

"'Richard Jones' via help-cfengine" <[email protected]>
Newsgroups gmane.comp.sysutils.cfengine.general
Message-ID <[email protected]>
Hi All,

I've recently moved to using FreeBSD as a home router. When I come to
add and manage users, the password seems to be altered every run. Here's
the bundle I use with the associated password body:

  bundle agent users {
  
    users:
      "user"
        policy          => "present",
        description     => "Test user",
        home_dir        => "/home/test",
        group_primary   => "staff",
        shell           => "/bin/bash",
        password        => test_passwd;
  }
  
  body password test_passwd {
     format             => "hash";
     data               => "$6$o1er87ahg3ESoM60$NyRTe66auRs3pOYMSw6q/Us0vDS6FTKve7VTSnufeJZ4vXTiP0ZeYZ45Wu1eE6NVsUP4QuzcMDzGB9./JMoVR1";
  }

The output on each run is:

  chpass: user information updated
      info: Modified user 'user'

Can anyone help? I could write a bundle just to edit the password field
of /etc/master.passwd, but that seems dangerous.

Thanks,

Richard

-- 
junix.systems/privacy
+44 7843 588 599

-- 
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/help-cfengine/20221219150416.GA142846%40grey-area.junix.systems.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.