cancel
Showing results for 
Search instead for 
Did you mean: 

Can not loggon

VICBUR1507
Frequent Advisor

Can not loggon

Hi Mates, I have a Debian server, when I try to loggon the server showme the following error:
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Dec 20 10:45:40 2010 from 192.168.1.185
/bin/bash: No such file or directory
Connection to 192.168.1.175 closed.


I can´t logg on

Anybody can help me
11 REPLIES
Tim Nelson
Honored Contributor

Re: Can not loggon

this is the error.

/bin/bash: No such file or directory


find bash or use a different shell for this user
Chhaya_Z
Valued Contributor

Re: Can not loggon

Hi,

Are you trying to login directly to the console or is it remote login? Are you a normal user or root?
Regards,
Chhaya

I am an HP employee.
Was this post useful? - You may click the KUDOS! star to say thank you.
VICBUR1507
Frequent Advisor

Re: Can not loggon

Hi Tim, Yes it´s the error....
==================================
Chhaya,
I trying to login with ssh and I was trying loggin with normal user and root user. But fail
Chhaya_Z
Valued Contributor

Re: Can not loggon

Hi,

How about login from console? can anyone login directly into console?

Regards,
Chhaya

I am an HP employee.
Was this post useful? - You may click the KUDOS! star to say thank you.
VICBUR1507
Frequent Advisor

Re: Can not loggon

Chhaya,

The console show me the followig error...

Attach file.

VB
Chhaya_Z
Valued Contributor

Re: Can not loggon

Hi,

Is this a newly installed system or was it working before?

Regards,
Chhaya

I am an HP employee.
Was this post useful? - You may click the KUDOS! star to say thank you.
VICBUR1507
Frequent Advisor

Re: Can not loggon

Hi,

Was working before.... :-(
Chhaya_Z
Valued Contributor

Re: Can not loggon

Hi,

Is it a production server?
Have you tried single user mode?
If you can try to boot in rescue mode then can you check if you find the below command:

#/sbin/getty

if this command is not found than check for the util-linux package as it provides getty.
Regards,
Chhaya

I am an HP employee.
Was this post useful? - You may click the KUDOS! star to say thank you.
VICBUR1507
Frequent Advisor

Re: Can not loggon

Chhaya,

Yes, this is a dom-0 host server for XEN virtual machines production server.

The VM´s working without problem but I can not reboot rigth now.....
Another choice???
Chhaya_Z
Valued Contributor

Re: Can not loggon

Hi,

If we would have been logged in to any terminal we could have checked the /etc/inittab file, if the getty service running on all the runlevels. And also checked for the package and the command.

As of now I am not able to think of any other choice.
Regards,
Chhaya

I am an HP employee.
Was this post useful? - You may click the KUDOS! star to say thank you.
Nils_9
Advisor

Re: Can not loggon

Hi,

some random ideas :
- if PermitRootLogin is set to "yes", you can still try to scp or sftp /bin/bash from another Debian server (versions must be the same)
- try using another shell by specifying it on the command line, for example, I would try 'ssh root@crashedserver.mydomain.com /bin/sh' or 'ssh -t root@crashedserver.mydomain.com /bin/sh'; I used /bin/sh but you can try /bin/csh ou /bin/tcsh depending on what command interpretor is installed on your system and which one you feel comfortable with.

Hope this helps !

Nils