Continuing the discussion from [Question about passwd.pacnew]

Continuing the discussion from Question about passwd.pacnew:

Well /user/bin/bash is not fine for me. It removes me as user, as I can’t log into gui, tty and takes sudo away from me. I get the often-mentioned black screen on autologin.

/user/bin/bash is listed in my /etc/shells/ .

Next to /usr/passwd I have also /usr/passwd-

Unsure what I do now. I fixed it temporarily gettig these 2 files back into my system via the Timeshift snapshot folder.

I had overwritten the old file /etc/passwd with the pacnew via pacdiff -s.

I had 42 lines or so but they remain. It will just insert that first new line to replace the old line with /bin/bash for root.

You should not overwrite /etc/passwd. It is the most important file that stores information about your user. If your user is not listed, you can’t login.

So what should I do with the pacnew, merge?

Carefully look at the difference and merge manually.

And what the passwd- file?

Well, may be it’s only a typo, but it’s not /user/bin/bash, it’s /usr/bin/bash

/bin and /usr/bin are the same. /bin is a symlink to /usr/bin so both lines should work…

Instead of using pacdiff, edit /etc/passwd file and change /bin for /usr/bin in root user and all other users you have created. I think it’s easier.

1 Like

Yes, a typo in the thread. Should I keep that in there too? root:x:0:0::/root:/bin/bash

Check here about the file Users and groups - ArchWiki

root:x:0:0::/root:/bin/bash and root:x:0:0::/root:/usr/bin/bash will work the same because both point at the same file. I changed all users in passwd file to /usr/bin/bash because if ever there’s a problem and the symlink between /bin and /usr/bin breaks, this way it would still work.

  1. No merge.
  2. Delete /etc/passwd.pacnew
  3. (Optional) Edit /etc/passwd to change


  1. Done, no headache

Thank you Zesko and Arrababiski, I will try that and reboot.

1 Like

…that’s what merge (and replace) is.

He wrote optional

There is nothing wrong about it.

file /usr/passwd- is backup copy of /usr/passwd

Could then wrote “1. Optional merge” and be done with it. That’s what merge is. That’s what those programs are for. Overwriting conf file and discarding pacnew are just two other options.

Agree, maybe his writing style was not perfect clear… but still it was acceptable and points in the right direction.

All I’m trying to say is that reading Manjaro forum I got a feeling that many people think that dealing with .pacnew files means doing overwrite or discard.

And merging is not optional either, TBH. Let’s say you keep same /bin/bash for users in /etc/passwd but in one year there is new change that removes /bin/bash from /etc/shells since everyone should be using /usr/bin/bash anyway. Unlikely to happen but what will be result? Lot’s of people posting how they’re unable to login for some reason.

This is just an unlikely example. But it definitely happened with other conf files. Things change, stuff gets added and removed. And you have to keep track of that plus make sure your custom config stays in there.


“Ain’t no such thing, old buddy.” (Carl Weathers (R.I.P.), “Predator”, 1987).

It’s /etc/passwd and /etc/passwd-. Yes, having the paths correctly is important. :smile:

As for why the change from /bin/bash to /usr/bin/bash, as has been explained higher up already, /bin is a symbolic link to /usr/bin, and is only there anymore for compatibility reasons, because certain software may still have the /bin and/or /sbin paths hard-coded in when looking for executables, but this is expected to be phased out in the future, and then /bin and /sbin will both be dropped as root-level directory entries.


Thanks, I put /usr/bin/bash in the first line manually and all worked. Thanks for the support.

Also put it further down at the end of the line that my username start with.

Yeah I was a bit in a bedazzled maintenance mode when I typed it :stuck_out_tongue:

You can, if you want bash as your default shell, yes.