Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use master.password file and format on freebsd platform #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rtgnx
Copy link

@rtgnx rtgnx commented Oct 1, 2022

FreeBSD uses slightly different format for it's user database master.passwd(5)
This change will use ${BASE}/master.passwd on freebsd build targets.
Before merging this, there's another pr to the-maldrige/shadow #1 with necessary changes to the format.

I have tested this on two freebsd hosts.

@rtgnx
Copy link
Author

rtgnx commented Oct 4, 2022

Additionally for the system to actually pick up the changes a call to pwd_mkdb(8) is required

 $:pwd_mkdb -p /etc/master.passwd

I am not sure if you'd prefer to leave that up to the user or include this in the change, since normally this would be run
as a cron job and can be easily made into something like */2 * * * * localize && pwd_mkdb -p /etc/master.passwd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant