You are not logged in.

#1 2020-05-13 07:51:14

d_fajardo
Member
Registered: 2017-07-28
Posts: 685

[Solved] Advice on /etc/shadow.pacnew

Pacman has just generated a new /etc/shadow.pacnew. I am not entirely sure how to reconcile this with the old. The pacnew file only has one entry root:*: My question is should I diff this new entry to my old shadow file or keep the old entry (which means I can practically just delete the pacnew)?

Last edited by d_fajardo (2020-05-13 10:59:43)

Offline

#2 2020-05-13 08:37:32

Awebb
Member
Registered: 2010-05-06
Posts: 5,479

Re: [Solved] Advice on /etc/shadow.pacnew

https://www.cyberciti.biz/faq/understan … adow-file/

Is "root:*:" the correct line for your shadow?

Offline

#3 2020-05-13 08:43:14

schard
Member
From: Hannover
Registered: 2016-05-06
Posts: 811
Website

Re: [Solved] Advice on /etc/shadow.pacnew

The file /etc/shadow is part of the filesystem package.
It contains "some" default users that each Linux system must have (speaking of the packaged file here!).
I.e. root.
Of course the standard package does not know which password the end user wants to set for their system's root user.
Hence the root's default passwort hash is an asterisk to never match any possible password hash.
So unless you want to disable login for your root user (Ubuntu-style), you should not replace the /etc/shadow entry with the one from the pacnew file.

Last edited by schard (2020-05-13 08:46:47)

Offline

#4 2020-05-13 10:59:25

d_fajardo
Member
Registered: 2017-07-28
Posts: 685

Re: [Solved] Advice on /etc/shadow.pacnew

Is "root:*:" the correct line for your shadow?

No it's not.
Thanks to you both, that clarified things.

Offline

#5 2020-05-13 11:17:54

amish
Member
Registered: 2014-05-10
Posts: 422

Re: [Solved] Advice on /etc/shadow.pacnew

If you have set root password already then you dont need to do anything. Just delete shadow.pacnew file.

If you have not set the root password then it is advisable to change your "root::" line to "root:*:" in your shadow file. (unless you want to continue without setting a password)


Forum signature: I discuss. I put my thoughts strongly. But I definitely respect all developers and time they put in.

Offline

#6 2020-05-13 12:31:46

merlock
Member
Registered: 2018-10-30
Posts: 79

Re: [Solved] Advice on /etc/shadow.pacnew

I wondered about that, too.  Found this:

Arch Wiki wrote:

Warning: Arch Linux defaults of the files are created as .pacnew files by new releases of the filesystem package. Unless Pacman outputs related messages for action, these .pacnew files can, and should, be disregarded/removed. New required default users and groups are added or re-added as needed by systemd-sysusers(8) or the package install script.

Wiki article


It's a big club...and you ain't in it -- George Carlin
Eenie meenie, chili beanie, the spirits are about to speak -- Bullwinkle J. Moose
Registered Linux user #149839
perl -e 'print$i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10); '

Offline

Board footer

Powered by FluxBB