You are not logged in.

#1 2014-06-10 14:38:05

nixIT
Member
Registered: 2010-01-13
Posts: 528

[SOLVED] accidentally renamed passwd

Hello all,

while updating my system, I accidentally renamed passwd.  I can see the following files:

passwd-
passwd.old (the one I renamed)
passwd.pacnew

However, I can't move anything back to passwd.  I read that you can restore this file, but am not sure how to restore it.  I'm afraid to reboot as I won't be able to get into my system.

I've searched the forum on how to restore, but can't find a mention of how to restore, only to restore.

Any help is greatly appreciated.

-nixIT

EDIT:  changed can to can't, just a plain typo.  smile

Last edited by nixIT (2014-06-10 17:32:30)


ASRock X570 PG VELOCITA AM4 AMD X570  | AMD Ryzen 5900x | 128GB G.SKILL RipjawsV  | ASRock Radeon RX 6700 XT Challenger D

Offline

#2 2014-06-10 14:41:17

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] accidentally renamed passwd

nixIT wrote:

However, I can move anything back to passwd. 

I've searched the forum on how to restore, but can't find a mention of how to restore, only to restore.

These don't make sense !

Did you mean you can't move back to passwd instead of can ? If so, what error does it give you if you try?


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2014-06-10 14:46:06

nixIT
Member
Registered: 2010-01-13
Posts: 528

Re: [SOLVED] accidentally renamed passwd

Inxsible wrote:
nixIT wrote:

However, I can move anything back to passwd. 

I've searched the forum on how to restore, but can't find a mention of how to restore, only to restore.

These don't make sense !

Did you mean you can't move back to passwd instead of can ? If so, what error does it give you if you try?

Yes, can't move back, sorry, a typo and fixed in post.

Here is what I get when I try to rename the file back

sudo mv passwd.old passwd
sudo: unkown uid 1000: who are you?

ASRock X570 PG VELOCITA AM4 AMD X570  | AMD Ryzen 5900x | 128GB G.SKILL RipjawsV  | ASRock Radeon RX 6700 XT Challenger D

Offline

#4 2014-06-10 15:04:35

DrShame
Member
Registered: 2014-04-26
Posts: 21

Re: [SOLVED] accidentally renamed passwd

Boot some kind of a livecd, mount your root partition and then rename the file using the livecd's root user ? Dunno if it works but it's a start.

Offline

#5 2014-06-10 15:06:31

nixIT
Member
Registered: 2010-01-13
Posts: 528

Re: [SOLVED] accidentally renamed passwd

@DrShame,

Thanx, I'm going to do later today (after lunch).  But first, I'm going to give this post a little while to see if there is any other way.


ASRock X570 PG VELOCITA AM4 AMD X570  | AMD Ryzen 5900x | 128GB G.SKILL RipjawsV  | ASRock Radeon RX 6700 XT Challenger D

Offline

#6 2014-06-10 15:34:58

cris9288
Member
Registered: 2013-01-07
Posts: 348

Re: [SOLVED] accidentally renamed passwd

nixIT wrote:

@DrShame,

Thanx, I'm going to do later today (after lunch).  But first, I'm going to give this post a little while to see if there is any other way.

DrShame's solution is probably the easiest and most straightforward. I would go with that.

Offline

#7 2014-06-10 15:36:21

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: [SOLVED] accidentally renamed passwd

You can always boot from Arch live CD and chroot into your system and than rename that file.

Offline

#8 2014-06-10 17:32:14

nixIT
Member
Registered: 2010-01-13
Posts: 528

Re: [SOLVED] accidentally renamed passwd

booting with a live and renaming my .old back to passwd worked.  solving thread.


ASRock X570 PG VELOCITA AM4 AMD X570  | AMD Ryzen 5900x | 128GB G.SKILL RipjawsV  | ASRock Radeon RX 6700 XT Challenger D

Offline

Board footer

Powered by FluxBB