LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 06-06-2005, 01:52 AM   #1
shinystuffrox
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?

-tia
ssr
 
Old 06-06-2005, 05:42 AM   #2
crash748
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, 07:01 AM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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 07:02 AM.
 
Old 06-06-2005, 07:06 AM   #4
rehab junkie
Member
 
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...
 
  


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

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

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