LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Messed up root, cannot login (https://www.linuxquestions.org/questions/linux-newbie-8/messed-up-root-cannot-login-95298/)

Plankt 09-21-2003 07:59 PM

Messed up root, cannot login
 
I edited some profilerc, bash_profile, xinirc etc etc and now when i try to login as root it says: bash: xmodmap: command not found
and then go back to the login thing..
I can login as another user and all is fine but the same thing happens when i try to use su, so its pretty hard to edit those files in the /root/ dir back to normal when it says i dont have permission to do so...
:scratch:
It would be great if it was a file outsite those "dont tuch" dirs but i dont know which one it is... Is just back to reinstall now?

watashiwaotaku7 09-21-2003 08:40 PM

well if you know which files are the problem or know what they were originally you can use knoppix or some other live cd and just boot into that then mount your linux partition and edit those files from there, that would seem the answer that will keep you most sane

lectraplayer 09-21-2003 09:10 PM

...but I have not been able to write to the hard disk in Knoppix 3.2. ...even trying to a FAT32 partition. I can see it though. A reinstall's the only thing I know of that you can do to get out of this one.:(

msh8r 09-21-2003 10:03 PM

have you tried booting into single-user mode? (rescue mode)

watashiwaotaku7 09-21-2003 10:09 PM

well...then dont use a knoppix livecd i know slackware install cd can write to a hdd and so i assume the slackware livecd certainly can so can the gentoo livecd you are not doomed to reinstall yet

Plankt 09-22-2003 10:38 AM

I managed to use a boot floppy to get root and i think i chaged back what was wrong.. but i still get a " bash: xmodmap: command not found " when i type su in shell / bash...

Medievalist 09-22-2003 12:51 PM

Boot single user mode.

Medievalist 09-22-2003 12:54 PM

Heh, ignore previous, I should have read your last.

grep for xmodmap in your root profile to find the bad line.

# grep -i -A2 -B1 xmodmap ~/.*


All times are GMT -5. The time now is 08:44 PM.