Can't logon


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Can't logon
# 1  
Old 11-21-2003
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.
# 2  
Old 11-21-2003
...............

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
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
Thanks for replying guys, I'm using FreeBSD 5.1 Unix.
# 5  
Old 11-22-2003
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. Smilie
# 6  
Old 11-23-2003
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
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?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. SCO

Openserver 5.0.5 - logon delay

We have an OpenServer 5.0.5 system that has worked forever, but I'm hearing complaints of logon delays for users now. Normally they would telnet in and the logon screen would pop up, but now it sometimes takes a minute or more, and the user must hit the enter key to get it to appear. Everything... (11 Replies)
Discussion started by: citygov
11 Replies

2. Post Here to Contact Site Administrators and Moderators

Cannot logon using elinks

There are some computers in the firm that have no GUI, so I use elinks (ELinks - Full-Featured Text WWW Browser) to access the internet. However, logging onto the unix.com forums is not possible, because the page hangs at "Thank you for logging onto the forums, " There is also a line "Please click... (6 Replies)
Discussion started by: figaro
6 Replies

3. Shell Programming and Scripting

Logon/Logoff script

I need help for writing a logon/logoff script for recording user's computer usage time. This is for local login only, not for ssh or something like that. When a user logon, there should be a temp file (/home/acct/login_temp) generated including the logname and logon time information in the... (8 Replies)
Discussion started by: jimx
8 Replies

4. Solaris

user logon details

how can i identifying whose are logged in last few days,time and date also want. what i will do for get that information (2 Replies)
Discussion started by: sijocg
2 Replies

5. AIX

aix logon

how do I create a script to logon to db2inst1 with a password , then issue db2 command :( (5 Replies)
Discussion started by: trekme
5 Replies

6. Solaris

ssh logon

Hi I am envountring a problem while I login using ssh on a sun box to a remote box. I use ssh user@server and it takes long time to ask for a password.. does anyone knows the reason behind this? or is there a way that this could be solved Thanks, Antony (8 Replies)
Discussion started by: antointoronto
8 Replies

7. Shell Programming and Scripting

About Logon

hi how can I know abt the details of current user who are logged on and as well as those users who currently have an account but are not logged on? Thanks (1 Reply)
Discussion started by: nokia1100
1 Replies

8. UNIX for Dummies Questions & Answers

Logon script

Hi: I am wondering if anyone has a logon script to be put in /etc/profile or environments that will display the logged on username and path? (4 Replies)
Discussion started by: capeme
4 Replies

9. Shell Programming and Scripting

logon to ssh

Hi, I need to run a command remotely, rsh is disabled so I'm trying to do this: ssh myserver ls -lst /work/jsf The problem is that this prompts for a password and I want to do it in a shell script. How can I pass the password without user interaction? I tried "echo mypass | ssh_command" and... (1 Reply)
Discussion started by: rocky_triton
1 Replies

10. SCO

Logon Problem

Hellow, I am using SCO Unixware version 7.1.1 on a machine, when I start this machine, after logon, one message window appears " Message ! with Ok button ", when I click on Ok button it again goes to logon windows. Can somebody help me regarding this. Thanks in advance... (0 Replies)
Discussion started by: tayyabq8
0 Replies
Login or Register to Ask a Question