You are not logged in.
Pages: 1
Hi. I've gottem myself in quite the situation here.
I'm in the process of ditching yaourt, so I thought while I was at it, I'd fix the pacnew files I had lying around /etc.
Unfortunately, I'm a little green with this, so aI mannaged to just overwrite passwd and group.
I've got an old arch livedisc i can boot from, but i need (and would opverly much appreciate) help on what the hell to do
I can start slim, but logins are not accepted, and switching to the terminal on ctrl-alt-F1 just keeps repeating that it can't start dbus.
Can I recreate the files somehow?
Last edited by Bladtman242 (2012-11-30 21:39:37)
Offline
$ pkg-extract_original /etc/passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/false
daemon:x:2:2:daemon:/sbin:/bin/false
mail:x:8:12:mail:/var/spool/mail:/bin/false
ftp:x:14:11:ftp:/srv/ftp:/bin/false
http:x:33:33:http:/srv/http:/bin/false
uuidd:x:68:68:uuidd:/:/sbin/nologin
nobody:x:99:99:nobody:/:/bin/false
$ pkg-extract_original /etc/group
root:x:0:root
bin:x:1:root,bin,daemon
daemon:x:2:root,bin,daemon
sys:x:3:root,bin
adm:x:4:root,daemon
tty:x:5:
disk:x:6:root
lp:x:7:daemon
mem:x:8:
kmem:x:9:
wheel:x:10:root
ftp:x:11:
mail:x:12:
uucp:x:14:
log:x:19:root
utmp:x:20:
locate:x:21:
rfkill:x:24:
smmsp:x:25:
http:x:33:
games:x:50:
lock:x:54:
uuidd:x:68:
network:x:90:
video:x:91:
audio:x:92:
optical:x:93:
floppy:x:94:
storage:x:95:
scanner:x:96:
power:x:98:
nobody:x:99:
users:x:100:
I would try to recreate those and then re-install packages that add users and groups.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Pkg-extract? Is that a package? It's not on my disc then
Last edited by Bladtman242 (2012-11-30 21:28:13)
Offline
Ahh. Turns out both files are backed up at /etc/passwd- and /etc/group- (I thought convension was ~ for backup files?)
Anyway, copied the files over and everthing works now.
Thank you for the input though
Offline
Pkg-extract? Is that a package? It's not on my disc then
It's a script. You can get it here. The point of my post was just to give you the default files if all else failed. Luckily you still had the backups.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Ahh, thanks
Offline
Pages: 1