You are not logged in.

#1 2011-05-22 19:16:14

I7IZI
Member
Registered: 2010-12-29
Posts: 9

[SOLVED] locked out of su rights and root account help plz

Hey everyone! Hope everybody is enjoying these post-apocalyptic days as much as I am. So here's what my dumb a** did lol. Just got done performing a major update and started switching  the .pacnew files in /etc with the old ones, well I didn't make the group.pacnew file available before I renamed the old one and now I'm locked out of su privileges and the root account. I know the password for the root account is correct because I set everything up myself but I can't login as root or even su to root. If any of you kind folks could help me out I'd appreciate it very much, thank you. I know I should look through the wiki and Googles my friend but without su privileges I'm unable to connect to the web and have to use my phone for now. Thanks again.

Last edited by I7IZI (2011-05-23 00:29:34)

Offline

#2 2011-05-22 19:19:14

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

Re: [SOLVED] locked out of su rights and root account help plz

Boot from a cd and chroot.  There is also a backup file called /etc/group- if the original isn't available.


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

Offline

#3 2011-05-22 20:06:57

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: [SOLVED] locked out of su rights and root account help plz

You don't even have to chroot just to edit/copy a file... Just boot from a live USB stick, mount your partition and do it.
I use meld to merge .pacnew files.

Offline

#4 2011-05-22 22:40:57

I7IZI
Member
Registered: 2010-12-29
Posts: 9

Re: [SOLVED] locked out of su rights and root account help plz

Lmao! Thank you for your quick replies smile Well I now know how to chroot, a tool that I was unfamiliar with. But I should have spent a moment or two longer to read the wiki completely and maybe I could have avoided wiping out grub files and configurations, lol. So now I've got most the files copied back into /boot/grub but I'm still missing the menu.lst file that tells grub where to find the kernel and everything else. So is there a sample menu.lst file somewhere within the system or am I gonna have to rebuild my /boot directory in order to get this confounded contraption working again? Thanks for your help, please learn me some more today, dang noobz lol.

Offline

#5 2011-05-22 22:44:04

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: [SOLVED] locked out of su rights and root account help plz

Here is mine, its is modified, but you can fix it:

ewaller@odin:~ 1001 %cat /boot/grub/menu.lst 
# Config file for GRUB - The GNU GRand Unified Bootloader
# /boot/grub/menu.lst

# DEVICE NAME CONVERSIONS 
#
#  Linux           Grub
# -------------------------
#  /dev/fd0        (fd0)
#  /dev/sda        (hd0)
#  /dev/sdb2       (hd1,1)
#  /dev/sda3       (hd0,2)
#

#  FRAMEBUFFER RESOLUTION SETTINGS
#     +-------------------------------------------------+
#          | 640x480    800x600    1024x768   1280x1024
#      ----+--------------------------------------------
#      256 | 0x301=769  0x303=771  0x305=773   0x307=775
#      32K | 0x310=784  0x313=787  0x316=790   0x319=793
#      64K | 0x311=785  0x314=788  0x317=791   0x31A=794
#      16M | 0x312=786  0x315=789  0x318=792   0x31B=795
#     +-------------------------------------------------+
#  for more details and different resolutions see
#  http://wiki.archlinux.org/index.php/GRUB#Framebuffer_Resolution 

# general configuration:
timeout   5
default   0
color light-blue/black light-cyan/blue

# boot sections follow
# each is implicitly numbered from 0 in the order of appearance below
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
#
#

# (0) Arch Linux
title  Arch Linux Kernel 2.6.38.5 Vanilla Custom for HP-DVR, No Initrd 
root   (hd0,4)
kernel /vmlinuz26_HP_DV4 root=/dev/sda8 ro

# (1) Arch Linux
title  Arch Linux Kernel
root   (hd0,4)
kernel /vmlinuz26 root=/dev/disk/by-uuid/73796934-070f-4e79-a973-229432222e58 ro
initrd /kernel26.img

# (2) Arch Linux
title  Arch Linux Kernel, Fallback Initrd
root   (hd0,4)
kernel /vmlinuz26 root=/dev/disk/by-uuid/73796934-070f-4e79-a973-229432222e58 ro
initrd /kernel26-fallback.img

# (3) Windows
title Windows
rootnoverify (hd0,0)
makeactive
chainloader +1
ewaller@odin:~ 1002 %

Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#6 2011-05-22 23:10:35

JokerBoy
Member
From: România
Registered: 2009-09-24
Posts: 641

Re: [SOLVED] locked out of su rights and root account help plz

stqn wrote:

You don't even have to chroot just to edit/copy a file... Just ..

.. add init=/bin/bash to your kernel line..

Offline

#7 2011-05-23 00:27:44

I7IZI
Member
Registered: 2010-12-29
Posts: 9

Re: [SOLVED] locked out of su rights and root account help plz

Thanks for the help guys! smile this ought to be straightened out sometime tonight.

Offline

Board footer

Powered by FluxBB