LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
Search this Thread
Old 05-07-2003, 10:34 AM   #1
hecresper
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & FreeBSD
Posts: 169

Rep: Reputation: 30
Now I did it! Wanna Laugh? Read on


LMAO @ myself

Here it goes:

I like to remotely connect to my homebsd box from the office every day. Specially now that I'm getting used to FreeBSD. Well, I wanted to have colors while in text mode, so I decided to use bash for root. What did I do? I su'ed root, ran chsh, changed the line /bin/sh to /bin/bash, logged out, tried to su again, WRONGO, /bin/bash doesn't exist. LOL While signed on with my regular account, I cd into /bin, did a ls and yep bash was not in there. Good ol' bash is under /usr/local/bin/bash. LOL Now I have to figure out how to recover from this. Otherwise, it's all about reinstalling the OS.

Isn't this a riot!
 
Old 05-07-2003, 12:11 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
I'm sure you should be able to reboot to a single user mode or just down to a shell prompt and change the configuratin from there to point to the correct shell path.. Got to love making mistakes.. its so fun to try and fix afterwards..
 
Old 05-07-2003, 12:34 PM   #3
hecresper
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & FreeBSD
Posts: 169

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by trickykid
I'm sure you should be able to reboot to a single user mode or just down to a shell prompt and change the configuratin from there to point to the correct shell path.. Got to love making mistakes.. its so fun to try and fix afterwards..
Thanks trickykid. Someone else also suggested booting into single-user mode. I've yet to try it because I'm at work, but I will stop by my house at lunch time and give it a try.

Sheesh, I felt so stupid yet not mad because I brought it onto myself. Then I just started laughing about it. LOL
 
Old 05-08-2003, 10:53 AM   #4
hecresper
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & FreeBSD
Posts: 169

Original Poster
Rep: Reputation: 30
Could not swiftly recover from the fsck up! So I ended up reinstalling the whole shebang. I made sure to install the sudo pkg this time around. Oh, and I got colors working with 'csh'.

.cshrc :

setenv CLICOLOR yes
setenv TERM cons25

Woohoo!
 
Old 05-22-2003, 03:37 PM   #5
Manadien
Member
 
Registered: Mar 2003
Distribution: FreeBSD 5.5, OpenBSD 3.3, Ubuntu breezy
Posts: 81

Rep: Reputation: 15
I did this with my regular user so with root I just made a symbolic link from /usr/local/bin/bash to /bin/bash. Too bad you didn't have a root logged in on the local machine still.

Last edited by Manadien; 05-22-2003 at 08:08 PM.
 
Old 06-03-2003, 02:39 AM   #6
5amYan
Member
 
Registered: Apr 2002
Location: The District
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291

Rep: Reputation: 30
yeah or at the console log in as root and vipw
edit...
 
  


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
Hint: Wanna try Linux, so wanna rig your Windows system to dual-boot? sundialsvcs Linux - Newbie 2 08-16-2005 02:56 PM
please read it i dont know the exact word to use to describe wat i wanna say pranith Slackware 5 05-30-2005 07:27 AM
God do I feel stupid, please read, laugh and help! jmpmjmpm Linux - General 12 02-22-2005 04:18 PM
please don't laugh... splashdream Linux - Newbie 11 01-22-2004 09:39 PM
Mandrake doesn't wanna read ATI driver off CD ch0g0nda Mandriva 1 10-18-2003 11:50 PM


All times are GMT -5. The time now is 04:31 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration