You are not logged in.
Hey, I have just encountered my first .pacnew file and am not sure what to do with it. I have read the wiki, but I know a lot of this has to be left up to the user, and I don't think I'm educated enough on this to solve it on my own. The passwd file looks like this:
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/false
daemon:x:2:2:daemon:/sbin:/bin/false
mail:x:8:12:mail:/var/spool/mail:/bin/false
ftp:x:14:11:ftp:/srv/ftp:/bin/false
http:x:33:33:http:/srv/http:/bin/false
uuidd:x:68:68:uuidd:/:/sbin/nologin
dbus:x:81:81:dbus:/:/sbin/nologin
nobody:x:99:99:nobody:/:/bin/false
polkitd:x:102:102:Policy Kit Daemon:/:/bin/false
avahi:x:84:84:avahi:/:/bin/false
mysql:x:89:89::/var/lib/mysql:/bin/false
kdm:x:135:135::/var/lib/kdm:/bin/false
johnathan:x:1000:100::/home/johnathan:/bin/bash
git:x:999:999:git daemon user:/:/bin/bash
systemd-journal-gateway:x:191:191::/:/usr/bin/nologin
systemd-timesync:x:192:192::/:/usr/bin/nologin
and the passwd.pacnew file looks like this:
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/false
daemon:x:2:2:daemon:/sbin:/bin/false
mail:x:8:12:mail:/var/spool/mail:/bin/false
ftp:x:14:11:ftp:/srv/ftp:/bin/false
http:x:33:33:http:/srv/http:/bin/false
uuidd:x:68:68:uuidd:/:/sbin/nologin
dbus:x:81:81:dbus:/:/sbin/nologin
nobody:x:99:99:nobody:/:/bin/false
systemd-journal-gateway:x:191:191:systemd-journal-gateway:/:/bin/false
systemd-timesync:x:192:192:systemd-timesync:/:/bin/false
As you can see, there are quite different, including missing lines in the .pacnew file and a change from polkitd and avahi to systemd. Could anyone tell me what is safe to merge?
Thanks for your help! ![]()
Last edited by SteampunkWhooves (2014-05-29 22:28:40)
Offline
Delete it.
Compare the two. There is nothing new in the pacnew file. None of the user or group IDs have changed. Your password file has a few things that have been added (avahi, mysql).
Note that this sort of analysis must be done on a case-by-case basis. Do not just routinely delete pacnew files. Read them, and determine what the differences are trying to tell you. There are good tools to help with this analysis, but you have to make the call.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Next time when posting code or command output, please use [ code ] tags https://bbs.archlinux.org/help.php#bbcode
like thisIt makes the code more readable and - in case of longer listings - more convenient to scroll through.
Offline
There is a change in the .pacnew...
systemd-journal-gateway:x:191:191:systemd-journal-gateway:/:/bin/false
systemd-timesync:x:192:192:systemd-timesync:/:/bin/falseYou should use vimdiff, or a similar tool, to identify any updates to the files that you may want to pull into your current config.
Offline
There is a change in the .pacnew...
Damn. I missed that.
You should use vimdiff, or a similar tool, to identify any updates to the files that you may want to pull into your current config.
See my expletive above as to why Jason's advise is sound
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Thank you all. I've added the new info and deleted the .pacnew file, so I think that should take care of everything.
I'll make sure to use [ code ] tags in the future, thanks for the advice, karol:)
Offline
I know this thread is marked [SOLVED], but in my case, upon close inspection, I noticed also that the uuidd user was changed in .pacnew today, in a very subtle way and the change probably won't matter anyway, I believe the changed field is the description for the user, but still, for completeness:
old:
uuidd:x:68:68:uuid:/:/sbin/nologinnew:
uuidd:x:68:68:uuidd:/:/sbin/nologinNotice the extra "d".
Offline
There is a change in the .pacnew...
systemd-journal-gateway:x:191:191:systemd-journal-gateway:/:/bin/false systemd-timesync:x:192:192:systemd-timesync:/:/bin/falseYou should use vimdiff, or a similar tool, to identify any updates to the files that you may want to pull into your current config.
I think such changes should also be announced on Arch News / RSS
i.e. https://www.archlinux.org/news/
So that users know that there are lines to be imported. (Atleast for filesystem package if not other packages)
EDIT:
I notice that those two users are already there in my system (in both passwd and shadow). So somewhere update already added those users. That is why possibly there was no announcement on Arch News.
But those new users are NOT in *new* shadow. IS IT A BUG? i.e. if users are in passwd, they should in shadow as well right?
Last edited by amish (2014-06-07 06:16:52)
Offline
People seem to think that there needs to be a news item for every little thing they have to do manually. Sorry, it doesn't work that way. Pacman warns you that it installed a pacnew file, if you're not able to recognize that and merge it yourself, you need to take a serious look at your choice of distro.
Offline
Hmm there are already few people in this thread who overlooked this. Change related to /etc/passwd is very serious issue.
I agree that not every change requires an announcement. May be not required this time because possibly systemd update added the users already.
I am just giving an opinion. So no offence but there is no need to go offensive and ask to change my distro choice. Peace. ![]()
Offline