LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 04-23-2008, 02:22 PM   #1
Ext-saf
LQ Newbie
 
Registered: Apr 2008
Posts: 1

Rep: Reputation: 0
Unhappy logout in bashrc


I use RHEL4. I loged-in as root and I mistakenly happened to put "logout" command in the .bashrc from the vi. Now, everytime i try to login from the root, I get loged-out. How can i solve this? Please tell me the solution soon.
 
Old 04-23-2008, 02:48 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Log in as a normal user, then do 'su -c ksh', then edit ~root/.bashrc

If there's no normal users you can log in as, boot to single user or from CD and edit the .bashrc file from there.

Dave

Last edited by ilikejam; 04-23-2008 at 02:50 PM.
 
  


Reply



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
Setting path: /etc/profile, /etc/bashrc or ~/.bashrc Swakoo Linux - General 1 08-07-2007 10:59 PM
bashrc ovince Programming 1 04-24-2007 02:27 AM
.bashrc EXAMPLE =P frz General 1 07-04-2006 05:55 PM
On gnome / x logout run "logout" ?? once here Linux - Software 1 01-09-2004 02:53 PM
bashrc nobu Slackware 6 03-21-2003 10:53 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 07:35 AM.

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
Open Source Consulting | Domain Registration