LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-13-2011, 06:49 AM   #16
satya123
Member
 
Registered: Mar 2011
Posts: 31

Original Poster
Rep: Reputation: 0

I am sure I am typing the password right. And yes I have restarted the sshd daemon after making the changes
 
Old 04-13-2011, 07:02 AM   #17
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

Strange. And you are able to login remotely with any other user than root to the same machine with password authentication? What other changes did you make to the sshd_config file?

Kind regards,

Eric
 
Old 04-13-2011, 07:06 AM   #18
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
You did remove the "#"
before the line
Code:
PermitRootLogin yes
right?

Kind regards
 
Old 04-13-2011, 07:12 AM   #19
satya123
Member
 
Registered: Mar 2011
Posts: 31

Original Poster
Rep: Reputation: 0
Yes I did remove the # before PermitRootLogin. That was the only change I did to be precise.
 
Old 04-13-2011, 07:46 AM   #20
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Rep: Reputation: 12
that's strange..

can you give us some code? copy/paste what you do in PuTTy to make the connection
 
Old 04-13-2011, 08:14 AM   #21
satya123
Member
 
Registered: Mar 2011
Posts: 31

Original Poster
Rep: Reputation: 0
Putty is a kind of GUI configuration.

We just type in the IP address and select the type of connection (ssh/telnet/rlogin).

So I login to the remote system having the above mentioned IP address. Then the user name and password will be asked for authentication.

So it is more or less like the normal SSH session. I guess there is a problem with the configuration only.

One moment. I checked the logs and it says "User root not allowed because shell bash does not exist"

Hope this helps..
 
Old 04-13-2011, 08:44 AM   #22
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

Can you login on the remote server and su -? Then check permissions on /etc/shells and check if /bin/bash is mentioned in there. Also check permissions on /bin/bash itself.

Kind regards,

Eric
 
1 members found this post helpful.
Old 04-13-2011, 09:59 AM   #23
satya123
Member
 
Registered: Mar 2011
Posts: 31

Original Poster
Rep: Reputation: 0
Thanks a lot Eric . The problem was the root entry in /etc/passwd file got modified somehow. The default shell was something else there. That was the reason for not logging in. I checked the /etc/shells and then stumbled upon this.

Thanks a lot everyone
 
Old 04-13-2011, 10:12 AM   #24
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Rep: Reputation: 12
Glad LQ could help
 
Old 04-14-2011, 12:54 AM   #25
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Quote:
Originally Posted by satya123 View Post
Thanks a lot Eric . The problem was the root entry in /etc/passwd file got modified somehow. The default shell was something else there. That was the reason for not logging in. I checked the /etc/shells and then stumbled upon this.

Thanks a lot everyone
Hi,

You're welcome! Glad you got it solved. However, the passwd file being modified without you knowing it kind of worries me. Are you the administrator of that system? And do others have root access too? Sudo set up for some other users? I'd check the security of your system if I were you. Have fun with Linux.

Kind regards,

Eric
 
  


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
unable to login as user; can login as root. rksanders Debian 24 02-09-2011 08:01 AM
Unable to login as root your_shadow03 Red Hat 2 01-03-2011 06:50 PM
SSH login banner/No root login jmoschetti45 Linux - Security 3 01-17-2010 04:51 PM
Unable to login via console or SSH predatorz Fedora 8 01-07-2008 12:17 AM
Unable to login via console or SSH predatorz Linux - General 3 01-05-2008 07:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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