You are not logged in.

#1 2010-01-02 22:27:03

pluckypigeon
Member
Registered: 2009-01-09
Posts: 86

Pacman moved passwd; now I have no root privilege to move it back

Pacman warnings:

warning: /etc/profile saved as /etc/profile.pacorig
warning: /etc/fstab saved as /etc/fstab.pacorig
warning: /etc/passwd saved as /etc/passwd.pacorig
warning: /etc/ld.so.conf saved as /etc/ld.so.conf.pacorig
warning: /etc/resolv.conf saved as /etc/resolv.conf.pacorig
warning: /etc/group saved as /etc/group.pacorig
warning: /etc/hosts saved as /etc/hosts.pacorig
warning: /etc/shadow saved as /etc/shadow.pacorig
warning: /etc/gshadow saved as /etc/gshadow.pacorig


$ sudo cp /etc/passwd.pacorig /etc/passwd
sudo: unknown uid: 1000

Any ideas? Thanks in advanced!!

Offline

#2 2010-01-02 22:35:17

pwd
Member
Registered: 2009-12-14
Posts: 13

Re: Pacman moved passwd; now I have no root privilege to move it back

Boot a live cd, mount the root fs and fix it from there.

And that is bizarre. Was it a result from pacman -Sf or maybe an ancient version of pacman?

Offline

#3 2010-01-02 22:49:54

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Pacman moved passwd; now I have no root privilege to move it back

Actually sounds like for some reason, the filesystems package was not in his local db, and therefor pacman moved the files when he updated/installed it from the repo.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#4 2010-01-02 22:51:20

jwbirdsong
Member
From: Western KS USA
Registered: 2006-11-25
Posts: 173

Re: Pacman moved passwd; now I have no root privilege to move it back

I'm curious.   What you were doing w/ pacman when this happened?


PLEASE read and try to FIX/FILE BUGS instead of assuming other have/will.

Offline

#5 2010-01-03 00:12:57

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Pacman moved passwd; now I have no root privilege to move it back

Shouldn't pacman save the new files as whatever.pacnew? This problem looks like the package filesystem was removed and pacman saved all the important files.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#6 2010-01-03 02:16:22

pluckypigeon
Member
Registered: 2009-01-09
Posts: 86

Re: Pacman moved passwd; now I have no root privilege to move it back

pwd wrote:

Boot a live cd, mount the root fs and fix it from there.

And that is bizarre. Was it a result from pacman -Sf or maybe an ancient version of pacman?

Thanks for your response smile. I did pacman -Sf. Unfortunately for me I only have an old copy of hardy.8.04 which doesn't support mounting ext4 and I have no blank cd's.... I'll have to get some tomorrow hmm

Mr.Elendig wrote:

Actually sounds like for some reason, the filesystems package was not in his local db, and therefor pacman moved the files when he updated/installed it from the repo.

I got an error, but I can't remember exactly what it said. Something about the pacman database being non-existent... Not sure why though because I haven't done anything to my pc recently

jwbirdsong wrote:

I'm curious.   What you were doing w/ pacman when this happened?

I was just trying to update using pacman

R00KIE wrote:

Shouldn't pacman save the new files as whatever.pacnew? This problem looks like the package filesystem was removed and pacman saved all the important files.

Yep, it usually does smile

Anyway, thanks for all your responses smile

Offline

#7 2010-01-03 02:23:40

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: Pacman moved passwd; now I have no root privilege to move it back

pluckypigeon wrote:

... I did pacman -Sf...)

Ooh..that is usually not a good idea, unless you know the possible resulting breakages and exactly how to fix them. Please don't use -Sf casually.

Offline

#8 2010-01-03 11:27:54

Vegita
Member
Registered: 2009-10-06
Posts: 111

Re: Pacman moved passwd; now I have no root privilege to move it back

I still insint on ext3. Once I couldn't mount my fedora from a fedora rexcue disk, so ext4 was then over for me. ext3 is recoverable and mountable from down the hell straightly, and the most stable at all

Offline

#9 2010-01-03 18:32:05

pluckypigeon
Member
Registered: 2009-01-09
Posts: 86

Re: Pacman moved passwd; now I have no root privilege to move it back

Vegita wrote:

I still insint on ext3. Once I couldn't mount my fedora from a fedora rexcue disk, so ext4 was then over for me. ext3 is recoverable and mountable from down the hell straightly, and the most stable at all

This may be true, I don't know.. but the only difference I have personally felt is the speed of fsck.

Offline

#10 2010-07-23 20:29:26

r0b0t
Member
From: /tmp
Registered: 2009-05-24
Posts: 505

Re: Pacman moved passwd; now I have no root privilege to move it back

Doing continually with my installation, just root [enter] and you will enter on your root account.
My arch was fééé up just after installing snort!!!
Now, I will format , pacman is f** up I install packages only with --force, pacman -Q pacman gives nothing and now I can install the dual-core arch.
smile

Offline

#11 2010-07-23 22:39:22

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: Pacman moved passwd; now I have no root privilege to move it back

Offline

Board footer

Powered by FluxBB