LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-04-2004, 09:42 AM   #1
Phaethar
Member
 
Registered: Oct 2003
Location: MN
Distribution: CentOS, Fedora
Posts: 182

Rep: Reputation: 30
Root user can't log in


Hey all,

Having some trouble on a Fedora 1 system today. Here's what was going on... I tried to SSH to a system to check some things, and each time I tried to log in, the window just closed on me. No errors, just closed. Weird. So I went directly to the system and checked it out. Things all seemed ok. I re-entered the password to make sure it was right, made sure things we all updated, etc. Still couldn't SSH to it though. Ok, I've seen Linux systems get weird if something had been updated or hadn't closed properly, so I thought I'd reboot the machine. Did that, and it came up fine, up to the login screen. Now, when I try to log in as root (only user set up so far), the screen goes dark for a second, then brings back the login screen like nothing ever happened. SSH still does the same thing too. So now, I'm seemingly locked out of this machine. I'm wondering if anyone has any ideas or suggestions on why the system goes dark for a second, then brings the login screen back up without any errors. I'm at a bit of a loss...

Also, this system was being used as a Free Radius system for the past few months. Could Radius have anything to do with the login issues?

Thanks.
 
Old 05-04-2004, 09:50 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Usually by default root login to ssh is disabled, which is a good thing. You should always setup sudo or just su, but never directly login with root on any system over a network, etc.

I'd say you'll need to boot with a rescue disk or cd to change your root's password, it might have gotten corrupt, etc.
 
Old 05-04-2004, 09:57 AM   #3
Phaethar
Member
 
Registered: Oct 2003
Location: MN
Distribution: CentOS, Fedora
Posts: 182

Original Poster
Rep: Reputation: 30
Quote:
Usually by default root login to ssh is disabled
That's really weird, because I use SSH on a lot of systems on our network (only available from inside the network). Might Redhat have enabled root access by default for SSH?

I'll look into using a rescue disk. I don't know that the password was corrupt though, as I changed it a couple of times before I reset the system. Even after changing it, SSH still just booted me out when I put the correct password in. If I used the wrong password, it locked me out (and still does). It's only when the correct password is entered that it either kills the SSH session right away, or resets the login page if I'm trying to login directly to the machine.
 
Old 05-04-2004, 10:05 AM   #4
mijenks
Member
 
Registered: Mar 2004
Location: NY
Distribution: Gentoo
Posts: 112

Rep: Reputation: 15
I think I may have had a similar problem with both SSH from a Linux remote box as well as SSH from a Win remote box (PuTTY). It stopped happening today. No explanation...

As far as remote login with root. I believe remote login with root was automatically enabled on FC1. You have to go to the conf file and change it, I believe. I don't know why this is the default, but I seem to recall being able to login remotely as root, although now I can't. I'm pretty sure I remember changing the conf file.

About a 1/3rd of the way down /etc/ssh/sshd_config, you should see "PermitRootLogin = <value>" where <value> should be set to 'no' if you don't want to allow root to login remotely. I mean, really, all you need to do is adduser then you can remotely login as user and just -su. Much safer...
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can not log in as root user backpacker Linux - Newbie 3 06-10-2005 03:21 AM
Cant only log in as root after user log-in. ADJenkins Linux - General 2 11-17-2004 04:18 PM
Log Out root Then Log In As Other User xtremcoder Linux - General 4 10-04-2004 11:01 PM
How to log in as root user Ree Linux - Newbie 4 09-30-2004 04:35 PM
Can't log in as user, only as root trentk Linux - Newbie 5 02-28-2002 08:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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