Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Other *NIX Forums > *BSD
User Name
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.


  Search this Thread
Old 06-06-2005, 02:52 AM   #1
LQ Newbie
Registered: Jan 2005
Posts: 25

Rep: Reputation: 15
chsh accident; big accident.

While setting up freebsd post install I was customizing a few things. one of thse few things was the path to bash. Using chsh i accidentally changed the root shell path to something that doesn't exist due to a typo. I am now unable to su or login as root. It was a neat trick i do admit, but there has to be a way to edit the file w/o being su or root, right?

Old 06-06-2005, 06:42 AM   #2
LQ Newbie
Registered: Aug 2003
Posts: 18

Rep: Reputation: 0
Did you try to boot in single mode?
At the bootprompt type: boot -s
It trow's you in the sh shell as root, and then you can start editing
Old 06-06-2005, 08:01 AM   #3
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
I made a similar error a while ago when I tried to change roots shell to zsh. I wish there was a way to point out this error before allowing you to save and exit as root.

Last edited by reddazz; 06-06-2005 at 08:02 AM.
Old 06-06-2005, 08:06 AM   #4
rehab junkie
Registered: Nov 2003
Location: /var/local/pub/bar
Distribution: OSX 10.4.9
Posts: 259

Rep: Reputation: 30
Another vote for booting into single-user mode. It's saved my arse a couple of times...


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
Aargh! Big accident/error with SUSE partitioner. undeaf Linux - Newbie 3 06-02-2005 04:53 PM
xkill'ed my taskbar by accident BRfromPA Mandriva 6 02-03-2004 11:14 AM
dd image write accident dwg22guitar Linux - General 1 07-03-2003 02:46 AM
Measures for accident!? Rex_chaos Linux - General 1 09-25-2001 01:12 PM
deleted cdrom by accident chronos Linux - General 1 12-16-2000 07:36 PM > Forums > Other *NIX Forums > *BSD

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