LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 09-21-2003, 08:59 PM   #1
Plankt
LQ Newbie
 
Registered: Sep 2003
Distribution: Slackware
Posts: 18

Rep: Reputation: 0
Unhappy 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...

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?
 
Old 09-21-2003, 09:40 PM   #2
watashiwaotaku7
Member
 
Registered: Oct 2002
Location: wisconsin -- The Badger state
Distribution: gentoo
Posts: 654

Rep: Reputation: 30
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
 
Old 09-21-2003, 10:10 PM   #3
lectraplayer
Member
 
Registered: Mar 2003
Location: a little west of Birmingham, AL, USA.
Distribution: SuSE 10
Posts: 915

Rep: Reputation: 30
...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.
 
Old 09-21-2003, 11:03 PM   #4
msh8r
Member
 
Registered: Jul 2001
Location: Houston, TX
Distribution: RedHat
Posts: 47

Rep: Reputation: 15
have you tried booting into single-user mode? (rescue mode)
 
Old 09-21-2003, 11:09 PM   #5
watashiwaotaku7
Member
 
Registered: Oct 2002
Location: wisconsin -- The Badger state
Distribution: gentoo
Posts: 654

Rep: Reputation: 30
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
 
Old 09-22-2003, 11:38 AM   #6
Plankt
LQ Newbie
 
Registered: Sep 2003
Distribution: Slackware
Posts: 18

Original Poster
Rep: Reputation: 0
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...
 
Old 09-22-2003, 01:51 PM   #7
Medievalist
Member
 
Registered: Aug 2003
Distribution: Dead Rat
Posts: 175

Rep: Reputation: 37
Boot single user mode.
 
Old 09-22-2003, 01:54 PM   #8
Medievalist
Member
 
Registered: Aug 2003
Distribution: Dead Rat
Posts: 175

Rep: Reputation: 37
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 ~/.*
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I messed up the FC2 login GUI areswargod03 Red Hat 1 11-13-2005 01:42 AM
HELP: My Login Screen Is Messed Up zhunagshi Suse/Novell 21 07-21-2005 12:14 PM
Messed up login from console, Upgraded to 10.1 and KDE 3.4 Maxplayer14 Mandriva 1 03-31-2005 05:44 PM
can only login as root? user login doesnt work..? anyone? hacking_4_b33r Linux - General 1 02-06-2004 12:40 AM
problem with root-login (messed all up?) notREALly Slackware 3 11-20-2003 09:56 AM


All times are GMT -5. The time now is 04:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration