LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-08-2010, 05:47 AM   #1
fdelval
Member
 
Registered: Feb 2010
Posts: 107

Rep: Reputation: 15
cant access linux (ubuntu 9.10) despite it still works (provides network services)


Hello,

My ubuntu 9.10 box is locked. If i try to connect via SSH, it never gets to the user login, but it doesnt show the cant connect error.

Via webmin, it prompts me the user & pass page (showing that the service is up! the connectivity is ok, and network works), but it wont ever login. it waits and load for ever.

In phisical console, i write down the user & password, i logoin correctly and it loads the welcome screen, displaying the used memory (43%), the users logged (0) etc, but it never shows the
user@box#:
command line, so i can write, but without any effect.

Meanwhile, on the pc's connected to its LAN, some services as DHCP doesnt work, but other ones like a proxy and firewall still work. Every user can still surf the net.

Lan --------- ubuntu server ----------- Internet


Right now, i have my ubuntu server in that state and i can try to do any test that could help me.
 
Old 11-08-2010, 08:27 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Pi OS & Android
Posts: 11,985

Rep: Reputation: 1415Reputation: 1415Reputation: 1415Reputation: 1415Reputation: 1415Reputation: 1415Reputation: 1415Reputation: 1415Reputation: 1415Reputation: 1415
Mebbe something has happened to bash

do a reboot with "init=/bin/csh" as a boot parameter (or some other shell)
 
Old 11-08-2010, 08:33 AM   #3
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,443

Rep: Reputation: 95
Ubuntu doesn't ship with a firewall, so when you enable ssh, be VERY careful. Use strong passwords.
 
Old 11-08-2010, 08:55 AM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553
Has nothing at all (that you know of) happened or changed, or maybe been updated, on this machine? Pretty suspicious if this "suddenly happened" all by itself - cause for concern IMO.

Anyhow, thinking along the same lines as the poster in post #2, I wonder if there's some crap code, or maybe an endless loop, in one of the Bash configuration files. Files like /etc/profile or maybe /$user/.bashrc or /$user/.bash_profile or one of these files, such that upon login, the shell is getting hung up processing its startup files.

To eliminate this as a possibility, see this thread:
http://www.linuxquestions.org/questi...modify-827237/
for info on bash options such as --norc for example, which might allow you to login to the shell if a faulty config file is to blame.

On Ubuntu, you also have Dash shell (and perhaps others) so test to see if all shells are affected, or just Bash.


Good luck.
 
Old 11-08-2010, 08:55 AM   #5
fdelval
Member
 
Registered: Feb 2010
Posts: 107

Original Poster
Rep: Reputation: 15
business_kid,
Ok, and then? should i check any log? wait for the problem to happend again?

Linux.tar.gz
Do you suspect any hacker in the lan?

GrapefruiTgirl
I will try, but i never played with bash... only related thing could be enabling sudo account... other than that, i stick to network services.

Last edited by fdelval; 11-08-2010 at 08:58 AM.
 
Old 11-08-2010, 09:03 AM   #6
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553
Please explain exactly what you mean + what you did, about "enabling sudo account". Perhaps this has something to do with it, so explaining it better might allow someone to say "yes" or "no" that it is contributing to the problem.
 
Old 11-08-2010, 09:24 AM   #7
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,443

Rep: Reputation: 95
Well ssh without strong password is very dangerous, especially if it's open to internet.
If you want to use some rootkit detection tools, boot on a live cd shipping it, mount the root file system as read-only, then launch ie. rkhunter.
 
Old 11-09-2010, 03:13 AM   #8
fdelval
Member
 
Registered: Feb 2010
Posts: 107

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by GrapefruiTgirl View Post
Please explain exactly what you mean + what you did, about "enabling sudo account". Perhaps this has something to do with it, so explaining it better might allow someone to say "yes" or "no" that it is contributing to the problem.

I did: passwd root, then, wrote down a new password.

Linux.tar.gz
never heard of the rootkit problems, do you recommend a good distro with those tools??
 
Old 11-10-2010, 07:52 AM   #9
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,443

Rep: Reputation: 95
I think backtrack ships rkhunter.
http://www.backtrack-linux.org/
Try to run a rkhunter update before scanning.
 
  


Reply


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
Ubuntu 8.04 in mixed Mac & Windows network Internet access but no access to network. traveller7 Linux - Networking 1 01-10-2009 08:53 PM
LXer: Access remote network services with SSH tools LXer Syndicated Linux News 0 11-11-2008 06:10 PM
Cannot access any services outside local network webnoelle Linux - Software 19 07-24-2003 08:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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