Thanks to SirDice and T-Aoki, I had already used vim but didn't remember.
My file after the edits now looks like:
After saving it:
After that had to edit '/etc/password' the same way to preserve the previous login key and discard the useless and duplicate lines.
Why isn't this done automatically? More or less everybody just wants to keep the same settings as they were and merge the new changes for the better, I don't see it that difficult to implement...
My file after the edits now looks like:
Code:
wheel:*:0:root,user
daemon:*:1:
kmem:*:2:
sys:*:3:
tty:*:4:
operator:*:5:root,user
mail:*:6:
bin:*:7:
news:*:8:
man:*:9:
games:*:13:
ftp:*:14:
staff:*:20:
sshd:*:22:
smmsp:*:25:
mailnull:*:26:
guest:*:31:
video:*:44:user,lightdm
realtime:*:47:
idletime:*:48:
bind:*:53:
unbound:*:59:
proxy:*:62:
authpf:*:63:
_pflogd:*:64:
_dhcp:*:65:
uucp:*:66:
dialer:*:68:
network:*:69:
audit:*:77:
www:*:80:
u2f:*:116:
ntpd:*:123:
_ypldap:*:160:
hast:*:845:
tests:*:977:
nogroup:*:65533:
nobody:*:65534:
user:*:1001:
_tss:*:601:
messagebus:*:556:
avahi:*:558:
polkitd:*:565:
cups:*:193:
colord:*:970:
pulse:*:563:
pulse-access:*:564:
pulse-rt:*:557:
git_daemon:*:964:
lightdm:*:164:
vboxusers:*:920:user,root
test:*:1002:
_sndio:*:702:
cyrus:*:60:
Code:
/var/db/freebsd-update/merge/new//etc/group: 54 lines, 745 characters.
After that had to edit '/etc/password' the same way to preserve the previous login key and discard the useless and duplicate lines.
Why isn't this done automatically? More or less everybody just wants to keep the same settings as they were and merge the new changes for the better, I don't see it that difficult to implement...