FreeBSD user management

3 views
Skip to first unread message

Richard Jones

unread,
Dec 19, 2022, 10:04:20 AM12/19/22
to CFEngine
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

Nick Anderson

unread,
Dec 19, 2022, 10:49:17 AM12/19/22
to Richard Jones, help-c...@googlegroups.com

"'Richard Jones' via help-cfengine" <help-c...@googlegroups.com> writes:

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,

Hi Richard,

I suspect that it's a bug. I see a ticket about users promise type not being supported on FreeBSD from a few years back. https://tracker.mender.io/browse/CFE-1847

So, for today I would say look for related tickets and update them, and pursue a bundle.

Richard

– Nick Anderson | Doer of Things | (+1) 785-550-1767 | https://northern.tech

Reply all
Reply to author
Forward
0 new messages