LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-18-2004, 12:36 AM   #1
atheist
Member
 
Registered: Sep 2003
Location: Iceland
Distribution: Debian Lenny - Kernel 2.6.22.8
Posts: 331

Rep: Reputation: 30
su returns segmentation fault


OK, I before I start let me just say that I was, and am, VERY tired.

I was just finishing up a setup of Debian putting the finishing touch on things. I had everything set up nicely and was just tweaking a bit. I had a .bashrc and a .bash_profile saved on a CD along with a other configuration files and was copying it to my home directory. When I try to log out for the changes to take effect I notice that I was root. Which is uncool since I used the "cp .bashrc .bash_profile ~" command. Copying the files to the "/root" directory. Upon realizing this I quickly try to become root again to fix this mistake... segmantation fault, thank you very much. (After typing my password.) I then log out and type "root" at the login prompt along with my password (I don't know why I thought that could possibly make a difference) but nothing happens and the login prompts appears once I press enter after typing my password. Getting pretty desperate I manually restart my computer hoping against hope that would make a difference. It didn't. I then had a brilliant idea, or so I thought at the moment. I rebooted manually again and gave the kernel boot option "init /bin/sh" thinking I'd gain root privileges and be able to modify these files. The filesystem, however, decided to be read-only, not allowing my to even use a text editor.

And, now, here I am. Desperately looking for help. If anyone could please help me, I'd be very grateful.

Thanks.

One more thing, though. I did try and view /root/.bashrc and /root/.bash_profile. The .bashrc file showed up like it was supposed to, like it hadn't been copied over, and the .bash_profile file simply wasn't there. I'm 100% sure I did "cp .bashrc .bash_profile ~". I can't view root's .bash_history file, though, due to permissions and the .bash_profile and .bashrc files in my home directory are still the default ones. That's why I'm assuming this is the problem. It could be something else, though, couldn't it? What then?

ANY help at all will be greatly appreciated.
 
Old 07-18-2004, 06:45 AM   #2
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
Don't you have a root/boot disk?

Enjoy!
--- Cerbere
 
Old 07-18-2004, 10:16 AM   #3
atheist
Member
 
Registered: Sep 2003
Location: Iceland
Distribution: Debian Lenny - Kernel 2.6.22.8
Posts: 331

Original Poster
Rep: Reputation: 30
Actually. No, I don't.

My only way out is a reinstall, isn't it?
I hadn't really finished setting this up so it shouldn't be too bad to set it up again, just frustrating.

Last edited by atheist; 07-18-2004 at 10:26 AM.
 
  


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
yast segmentation fault, system freezing - nvidia driver at fault? BaltikaTroika SUSE / openSUSE 2 12-02-2005 09:34 AM
segmentation fault lmvent Programming 2 10-20-2005 03:14 PM
Segmentation fault fridgider Linux - Software 1 04-09-2005 11:36 AM
segmentation fault in c++ drigz Programming 10 06-16-2004 03:06 PM
segmentation fault? sgm Programming 1 01-25-2003 08:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:45 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