LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-11-2005, 04:45 AM   #1
aru_04
LQ Newbie
 
Registered: Nov 2004
Posts: 24

Rep: Reputation: 15
Unhappy logging on without executing bashprofile


hello,
greetings all ye people out there
the probelm i'm facing is that i have written a shell program in .bash_profile(located in my home directory) in which i have written an 'exit' statement.
now, whenever i login the system shell immediately exits-because .bash_profile gets executed first- and comes back to the login prompt. I've tried logging in in graphical mode and in failsafe session but NOTHING works . I can't do anything!
I am not the root . Now, can u suggest any solution which solves my problem (without me approaching the sys admn ,of course)?
 
Old 06-11-2005, 05:07 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

You need another account to access your 'broken' account. If you do have another account you can do the following.

Login to the other account and then do:

su - <org_user> --noprofile

Edit the .bash_profile, exit both accounts and you should be OK again.

If you do not have access to a second account you do need to ask the sysadmin to solve this.

Hope this helps.
 
Old 06-11-2005, 05:34 AM   #3
aru_04
LQ Newbie
 
Registered: Nov 2004
Posts: 24

Original Poster
Rep: Reputation: 15
Wink thanks a million!!

THANKS A MILLION, FRIEND !!
IT WORKED!!
HURRAY FOR DRUUNA !HURRAY FOR LINUXQUESTIONS!!
bye,
aru_04
 
  


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
executing a script when logging via ssh rubby1 Linux - General 8 10-06-2005 03:12 PM
Executing another application kamransoomro84 Programming 4 06-29-2004 11:36 AM
Error While Executing ChangeOfPace Linux - Networking 3 05-07-2004 08:49 AM
Executing fbset suriyamohan Linux - Software 3 04-28-2003 07:04 AM
using red-carpet without logging out and logging as root. packman Linux - Software 1 12-09-2002 02:55 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:40 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
Open Source Consulting | Domain Registration