You are not logged in.

#1 2010-12-31 09:59:54

adamlogan
Member
Registered: 2010-01-29
Posts: 38

Overwrote gshadow

I'm planning on reformatting anyways, since the current filesystem is a mess. This was the first time I really used the Arch Linux distro so it was a learning experience. Installed a few programs the "classic" way when I should have at least done a pkgbuild with them to make it easier to uninstall and for others to download install it too.

But… Why not learn from this? How do you go about fixing things when you overwrite gshadow? It feels like I wiped out all the environment variables and I need to fix them??

Comments would be great. Chuckles are fine too lol

Offline

#2 2010-12-31 10:13:55

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Overwrote gshadow

adamlogan wrote:

How do you go about fixing things when you overwrite gshadow?

You pick the file from your most recent backup.
https://bbs.archlinux.org/viewtopic.php … 59#p829359

Last edited by karol (2010-12-31 10:14:55)

Offline

#3 2010-12-31 10:38:20

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Overwrote gshadow

Can't you just run grpconv to recreate it?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#4 2010-12-31 11:04:05

adamlogan
Member
Registered: 2010-01-29
Posts: 38

Re: Overwrote gshadow

Cool. I'm amazed at how quick it was to mount the root partition. Did not know that there were "backup files" invisible even to ls -A.. How does that work? Anyways I overwrote 'gshadow-' onto 'gshadow'. When I rebooted and logged in my home dir is set to root! I opened up /etc/passwd, I don't get it, the path looks fine there. Did a diff between the 'passwd' & 'passwd-' files, only difference was the - one had an entry for the pulse audio framework.

adamlogan:x:1000:100:Adam Logan,,:/home/adamlogan:/bin/bash

Last edited by adamlogan (2010-12-31 11:19:36)

Offline

#5 2010-12-31 11:19:04

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Overwrote gshadow

Which groups is your user a member of now?  Are they different than before?

Also, check the permissions on you home dir.

Which package was it?  did you make any other changes?

Last edited by loafer (2010-12-31 11:26:54)


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#6 2010-12-31 11:39:49

adamlogan
Member
Registered: 2010-01-29
Posts: 38

Re: Overwrote gshadow

lol, face-palms. There was no home directory for the home user. Easily fixed from the root account. It's fine now. I'm in the usual groups. lp wheel games network video optical storage power users.. Might be missing a group or two but that's easily remedied later. I nuked my home dir though, xinit is not working right cuz of that. Even doing

xinit /usr/bin/chromium $* -- :1

fails, says something like "Must be able to get user data directory!"

Offline

#7 2010-12-31 11:41:07

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Overwrote gshadow

Try reinstalling xorg and friends.

Offline

#8 2010-12-31 12:26:42

adamlogan
Member
Registered: 2010-01-29
Posts: 38

Re: Overwrote gshadow

I'll have to try reinstalling another day. Apparently my powercord adaptor for my ibmthinkpad w/ arch went missing, and the time it took for me to get wicd-curses connected to the new router (ibm is not connecting to N spec 5ghz band so I had to turn on 2.4 ghz band) my battery was about dead. Anyways, I just love Arch more and more as I use it smile.

Overwriting my gshadow and deleting my home directory not but a few minutes from each-other, I think my alter ego had a field day in the wee hours of the morning when I did that. Lets break it so we can have fun fixing it…

Offline

Board footer

Powered by FluxBB