The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
About Logon nokia1100 Shell Programming and Scripting 1 04-05-2007 04:21 AM
Logon script capeme UNIX for Dummies Questions & Answers 4 12-06-2006 07:58 AM
logon to ssh rocky_triton Shell Programming and Scripting 1 05-10-2005 04:11 AM
Logon Problem tayyabq8 SCO 0 11-16-2004 02:14 AM
AIX logon attempts eysheikah Security 0 06-20-2003 06:24 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-21-2003
SRP SRP is offline
Registered User
 

Join Date: Nov 2003
Posts: 9
Can't logon

I stupidly changed the shell of the root user to one that does not exist, and now when I try to lgon it says it cannot find the path to my shell and will not let me proceed any further. Is there any way I can get round this without re-installing the OS?

Thanks for any replies.
Forum Sponsor
  #2  
Old 11-21-2003
pressy's Avatar
solaris cultist
 

Join Date: Aug 2003
Location: Vienna / Austria (Europe) [EARTH]
Posts: 718
...............

check a live-cd-os like knoppix
http://www.knopper.net/knoppix/index-old-en.html
, mount your fs and correct it

greetings Preßy
  #3  
Old 11-21-2003
google's Avatar
Moderator
 

Join Date: Jul 2002
Location: Atlanta
Posts: 740
What OS are you using? If you are using a Linux variant, then you can easily overcome this with Toms Root boot.Toms RooT BooT
  #4  
Old 11-21-2003
SRP SRP is offline
Registered User
 

Join Date: Nov 2003
Posts: 9
Thanks for replying guys, I'm using FreeBSD 5.1 Unix.
  #5  
Old 11-22-2003
auswipe's Avatar
Registered User
 

Join Date: Nov 2001
Location: Wide Awake Wylie, Texas
Posts: 536
Quote:
Originally posted by SRP
Thanks for replying guys, I'm using FreeBSD 5.1 Unix.
You should be able to boot into single user mode "boot -s" when prompted and mount your file systems and modify the entry.

I can't remember for sure but I believe that the boot process will either ask you for a shell to use or use /bin/sh by default.

Of course, all of this is coming off the top of my head.
__________________
Not quite as cool as all the other Kids...
  #6  
Old 11-23-2003
SRP SRP is offline
Registered User
 

Join Date: Nov 2003
Posts: 9
I have booted into single user mode but it wont let me do anything. I cant run the 'chsh' command and it wont let me edit anything either. I cant even progress into the lower levels of the file system e.g. I can cd to /usr but not /usr/bin even though that directory exists. Anyone got any ideas?
  #7  
Old 11-23-2003
auswipe's Avatar
Registered User
 

Join Date: Nov 2001
Location: Wide Awake Wylie, Texas
Posts: 536
Quote:
Originally posted by SRP
I have booted into single user mode but it wont let me do anything. I cant run the 'chsh' command and it wont let me edit anything either. I cant even progress into the lower levels of the file system e.g. I can cd to /usr but not /usr/bin even though that directory exists. Anyone got any ideas?
After booting into single mode did you run a `mount -a` to mount all filesystems?
__________________
Not quite as cool as all the other Kids...
Google The UNIX and Linux Forums
Closed Thread

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:33 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0