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-12-2004, 01:30 AM   #1
eJavier
LQ Newbie
 
Registered: Sep 2004
Posts: 8

Rep: Reputation: 0
I messed up my /etc/bashrc


Hi

As the title says, I messed up my /etc/bashrc file. I believe that I inadvertently removed the PATH line of the bashrc file while I was tweaking it as root.

Right now I can't log in as a normal user and when I enter as root in failsafe mode I only have a couple of commands available. For instante, I can't use 'ls' and 'vi' .

Is there something I can do?

thanks in advance
 
Old 09-12-2004, 01:35 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, and welcome to LQ!


It's a bit distro-depends what your bashrc looked
like, so if you can share that information with us ...



Cheers,
Tink
 
Old 09-12-2004, 01:37 AM   #3
eJavier
LQ Newbie
 
Registered: Sep 2004
Posts: 8

Original Poster
Rep: Reputation: 0
I use Fedora Core 2.
 
Old 09-12-2004, 05:54 AM   #4
rm6990
Member
 
Registered: Aug 2004
Location: Canada
Distribution: SUSE 9.1 Pro and Debian Testing on Server
Posts: 469

Rep: Reputation: 30
Are you able to boot off of a live cd and alter the file back to its original state?
 
Old 09-12-2004, 11:31 AM   #5
eJavier
LQ Newbie
 
Registered: Sep 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Now i have my problem solved, all I had to do was to put something like:

export PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin

and then I worked my way throught it
 
  


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
.bashrc help shanenin Linux - Software 4 02-14-2004 06:17 PM
.bashrc f0rmula Linux - Software 24 12-28-2003 09:43 PM
Where is .bashrc? Luantum Slackware 3 12-01-2003 12:29 AM
.bashrc roofy Slackware 7 05-06-2003 01:32 PM
bashrc nobu Slackware 6 03-21-2003 10:53 AM


All times are GMT -5. The time now is 11:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration