LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (http://www.linuxquestions.org/questions/red-hat-31/)
-   -   Edit ELsmp boot file (http://www.linuxquestions.org/questions/red-hat-31/edit-elsmp-boot-file-581648/)

nablaodel 09-02-2007 09:50 AM

Edit ELsmp boot file
 
Hello,

I been given a computer with RHEL on it. I've only been using linux for about 6 months and mostly Ubuntu. Before I format the computer I would like to see if I can give myself root privileges on this computer as a learning experience.

I've booted off of a Ubuntu Live CD and mounted the /dev/sda1. There is a grub and lost+found folder. Then there are init*.img, vmlinu-*.ELsmp files and a few files that look like config files.

I was able to use cpio to unzip the .img files which did create a /etc/ folder but that folder didn't contain the passwd or shadow files.

Therefore, I'm pretty sure I need to unzip the *.ELsmp files, edit the correct files and then somehow zip them back up.

Is this possible or am I wasting my time?

Thank you in advance!
-------------------

Turned out the file system was LVM and Ubuntu doesn't recognize that with default setup. I found a method for mounting LVM in Ubuntu at http://www.linux-sxs.org/storage/fedora2ubuntu.html

Lenard 09-03-2007 07:45 AM

Yep, your wasting your time no passwords or shadow files are stored in the img files. As a suggestion read the manuals;

http://www.redhat.com/docs/manuals/enterprise/

And learn the power of su, sudo, the sudoers file and the wheel group.


All times are GMT -5. The time now is 11:58 AM.