… and even after this reveal I don’t get it
Much of the intricacies of Python are and will forever be lost on me.
I still like them.
You would both need to be familiar with the dialogue from Monty Python’s Holy Grail; @anon33601770 it’s understandable that you might not carry that in your memory banks, being that you likely heard the dialogue in German; @BG405 you have no excuse! ![]()
No. I despise translations. Never heard that one in german.
Whenever I come across translations:
they are seldom accurate - and not funny in the same way.
I know the language pretty well - well enough to notice “flaws” in the translation.
I still don’t know what happened here. … It’s o.k. though ![]()
I am pretty dense, sometimes.
Macht nichts - ich kriegs einfach nicht mit.
Es geht an mir vorbei.
… right over my head … as they say …
My fault - not yours. ![]()
True, but as we know, properly merging may in fact mean doing nothing.
It’s actually a pretty good rule.
I don’t think I’ve ever merged a single pacnew for /etc/{passwd,shadow,gshadow,group}, though I could’ve just forgotten. Either way I’ve definitely just deleted a few.
Here’s a current example:
# /etc/passwd.pacnew
root:x:0:0::/root:/usr/bin/bash # the matching line in passwd is identical
The file in the package obviously doesn’t have the accounts which are configured in the system, that’s the only reason there is a pacnew.
The correct way to merge this is to ignore it, even if something differed then it would change the config for the root account which is probably not desired.
The same goes for groups, shadow and gshadow. They’re all highly unlikely to have anything which needs adjusting.
Also no one should touch those files unless they know what they’re doing, even then it’s unlikely there’d be any good reason to do so.
If you “properly” merge it
you would not change that one ![]()
That might be the case.
Or not.
It requires some understanding of what these files are for.
Not every one has that.
But that is what comes with using Arch/Manjaro.
That’s my point, in most/all cases you wouldn’t change anything.
Inexperienced users could easily make a mistake.
So the rule to ignore those particular pacnews is pretty good advice, though perhaps needs a caveat (“unless the update announcement says otherwise”) just in case we eventually get one that does need merging.
Perhaps suggesting a comparison of the two files is still the best idea, and –
- if they are not identical – seek assistance.
- if they are identical, delete the
.pacnew
Naturally, this approach would be for those who seem to have no clue.
That’s also a good rule of thumb for the inexperienced. However they’ll never be identical for these files, they contain accounts that can’t exist in the .pacnews.
Of course checking them is the best way…but in ~15 years of using Arch and Manjaro I don’t remember a single time I needed to modify those files.
Except for /bin/bash → /usr/bin/bash, but the former still works and likely will for quite some time, anyway that’s done now and it’s not going to change again any time soon.
Also pacnew-checker already warns about passwd and shadow.
Maybe something like this for advice to newbies, or a tldr in a tutorial.
Always compare the two files:
- if they are not identical and you’re not
% sure what to do – seek assistance.
- if they are identical, delete the
.pacnewIn the case of
passwd,shadow,groupandgshadowjust delete the .pacnew unless otherwise stated in the update announcement.
or we could replace the last part with something like this
In the case of
passwd,shadow,groupandgshadowalways seek assistance, unless you really know what you’re doing.
We could link to information on each file.
![]()
No, the proper way of merging it would be to replace the entry for the root account in your existing /etc/passwd by the one in the .pacnew.
The difference between them that warranted the .pacnew is that the root account’s shell in the .pacnew was changed from /bin/bash to /usr/bin/bash.
In Arch and derivatives, /bin is a symbolic link to /usr/bin for backwards compatibility, and the idea is that in the long term, when all of the software will have been adapted to looking for /usr/bin instead of /bin — which is already the case for most of the software — those symlinks will become obsolete and will be deleted from the filesystem package.
By not merging the .pacnew, you are risking that when said updated filesystem package gets pushed out to the mirrors, you would be breaking the root account, and with it, part (if not all) of the boot process.
No need, they’re already identical, which is why I said it should be ignored. The pacnew that made that change was some time ago, and this is a fresh install of plasma.
I haven’t heard about any plans to actually remove those symlinks yet, so /bin/bash will probably work for years to come anyway. It’ll be interesting (eventually) to see how long it takes to be removed completely. ![]()
Any new system should already have /usr/bin/bash. There’s really not much else you can change in there, and what can be changed probably shouldn’t be changed in most cases.
It’s rare that there’s anything in those pacnews which needs merging, so rare I can only think of that one example (in ~15 years). Maybe I’ve forgotten, can you think of any others?
For some reason I was thinking that wouldn’t remove the existing symlinks from the system. However it would remove them, when it happens.
EDIT:
I’m just saying it’s better than nothing. If there’s a proper tutorial on how to handle them then that’s better, but some won’t read it, others will forget, a simple tldr could fill the gap.
I believe there was one that added additional system user accounts for some stuff that wasn’t installed before and was pushed along with the update — i.e. it was added to core.db — or that possibly ran with root privileges earlier. But this was a long time ago. ![]()
I’ve a /etc/passwd and a /etc/passwd-
they have the same content, but /etc/passwd have one more line:
stunnel:x:16:16::/var/run/stunnel:/usr/bin/nologin
is this normal?
/etc/passwd- is a backup file, which is automatically created when /etc/passwd is changed due to the addition or removal of a user account. Likewise, you will find that you also have a /etc/shadow- file, and possibly /etc/group- and /etc/gshadow-.