Solved Problems after merging files during the update from FreeBSD 13 to 14

You need to remove only the merge markers. Do not copy/paste the entire file.

The Lines that you need to remove are the following
<<<<<<< current versions <-----REMOVE
# $FreeBSD$
#
root:$6$EyyKWIz9axa1uuXC$2lcKB/9on1Jx/hmsPLb1vQ.nDNsNpsKYCmHenSuRnOd1ksn5uAhzoyqSpHexDRxE8xKVffWYbkbzM75PX/lpP0:0:0::0:0:Charlie &:/root:/bin/csh
======= <-----REMOVE
root::0:0::0:0:Charlie &:/root:/bin/sh<-----REMOVE
>>>>>>> 14.1-RELEASE<-----REMOVE
toor:*:0:0::0:0:Bourne-again Superuser:/root:
daemon:*:1:1::0:0:Owner of many system processes:/root:/usr/sbin/nologin
operator:*:2:5::0:0:System &:/:/usr/sbin/nologin
 
IMG_20250131_235806_862.jpg


pwd_mkdb: /etc/master.passwd: inappropriate file type or format
 
Is that last line in /etc/master.passwd really there? The one that begins with /var/db/freebsd-update/merge/new...... That''s not supposed to be there, and you should probably remove it.
 
This need to be on single row:

root:$6$EyyKWIz9axa1uuXC$2lcKB/9on1Jx/hmsPLb1vQ.nDNsNpsKYCmHenSuRnOd1ksn5uAhzoyqSpHexDRxE8xKVffWYbkbzM75PX/lpP0:0:0::0:0:Charlie &amp;:/root:/bin/csh

Instead of
root:$6$EyyKWIz9axa1uuXC$2lcKB/9on1Jx/hmsPLb1vQ.nDNsNpsKYCmHenSuRnOd1ksn5uAhzoyqSpHexDRxE8xK
VffWYbkbzM75PX/lpP0:0:0::0:0:Charlie &amp;:/root:/bin/csh

Or if you want to remove the entire password enter
root::0:0::0:0:Charlie &:/root:/bin/sh

Then change your password using passwd command
 
passwd:
IMG_20250201_195724_997.jpg


master.passwd:
IMG_20250201_195726_997.jpg


Thank you for your help, but the same problems still exist. I went back to the beginning of the posts and re-ran the commands, but I still get the same errors.
 
Guys thank you so much for all the helps :) I solve the problem root password and create normal user with this command:

/usr/sbin/pwd_mkdb -p /etc/master.passwd
 
Just a FYI for the future merges.

You'd better removing top 2 lines starting from "#" with vipw.
Don't forget to set EDITOR environment veriable with your choice, unless you're already familiar with vi. (For single use mode, if you're not familiar with vi, ee is strongly [almost mandatory] recommended.)
vipw would run pwd_mkdb properly after editing (with the editor specified with EDITOR environment variable) and saving /etc/master.passwd, once it checked the sanity of /etc/master.passwd.

And clearly, DEFAULT SHELL FOR ROOT SHALL NOT BE CHANGED FOREVER!!!!!
Or at least, need special handling on etcupdate (somehow excluding it from merging) for the time POSIX mandates disposing sh and change to someting (quite unlikely to be happened, though).
 
Back
Top