Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-05-2004, 12:18 PM   #1
LQ Newbie
Registered: Sep 2004
Posts: 3

Rep: Reputation: 0
Unhappy /etc/profile kill? bypass?

I launched a script from /etc/profile and the script enters an infinite loop and never returns. I can't figure out how to kill the script so that the login can finish and so I can go in and fix the script. Is there a way to boot and bypass /etc/profile ? or how can I terminate the script that's running?
Old 09-05-2004, 12:23 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Have you tried a "Ctrl+c"? If that doesn't work then you could bring the system up in single user mode.
Old 09-05-2004, 12:23 PM   #3
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
If you're fortunate enough to have another login session (on another terminal or via SSH) you can su to root in that session and fix /etc/profile. Alternatively, if you have an account that uses a C shell derivative (unlikely, unless you specifically set one up), you can login to it, since the C shell has its own set of startup scripts and doesn't use /etc/profile IIRC.

Failing both of those, the simplest thing to do would be to boot into single user mode and fix it. There are many threads on this forum detailing how to do that (and many tutorials on the Internet at large, too).
Old 09-07-2004, 10:44 AM   #4
LQ Newbie
Registered: Sep 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Thumbs up

I booted in single user mode and was able to do what I needed. Thanks!


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
What if 'kill -9' fails to kill a task? chii-chan Linux - Newbie 15 03-27-2013 04:47 PM
how to use kill to kill a batch of processes with same name? dr_zayus69 Linux - Software 2 09-03-2005 07:35 PM
cannot kill process (kill -9 does not work) mazer13a Linux - General 1 05-27-2005 03:32 PM
Bypass Proxy Ungluun Linux - Networking 4 03-10-2005 01:42 AM
Bypass proxy hotplainrice Linux - Networking 1 02-26-2005 07:13 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:22 PM.

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