LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 08-06-2003, 06:28 PM   #1
visioning
LQ Newbie
 
Registered: Aug 2003
Location: OR
Distribution: redhat and suse
Posts: 6

Rep: Reputation: 0
get kick out everytime typing in the root and password


Hi there:

Could someone please help? Everytime I login with root and password and press enter and it kicks me back to the logon screen (the text logon screen since I chose to use the text mode logon instead of graphical) again. This is not about wrong password because I even write them down after installing redhat 9. And I thought something wrong so I went and reinstall the whole thing again and the same thing happened.

The system and configuration as the following:

intel p4
redhat 9
/boot
swap
/
/usr
custom package and everything selected.
networking using static ip and connect to my company network.
using text mode instead of graphical at login.

Thank you much!
 
Old 08-06-2003, 06:32 PM   #2
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Caps lock on? Security set to disallow root login?
 
Old 08-06-2003, 06:54 PM   #3
visioning
LQ Newbie
 
Registered: Aug 2003
Location: OR
Distribution: redhat and suse
Posts: 6

Original Poster
Rep: Reputation: 0
Hi Proud:

No caps lock on at all. And what is the Security setting you are talking about. I don't really know this.

Thanks for your help.
 
Old 08-07-2003, 12:41 PM   #4
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Well I know in Mandrake there's a list of security settings you can select to quickly lock down your box. One of the changes in the higher levels is disallowing root to log in at the command line.
Can you still su - and become root once logged in as another user? If not, can you find traces of a wheel group in /etc/passwd ?
 
Old 08-07-2003, 02:57 PM   #5
lfur
Member
 
Registered: Jul 2003
Location: Slovenia
Distribution: Slackware & FreeBSD
Posts: 209

Rep: Reputation: 30
visioning,

if proud's suggestions don't help, take a look at your /etc/securetty file.

#tty1

means that root cannot log in the terminal number 1.
If:
tty1

is set, then root can log in.

Last edited by lfur; 08-07-2003 at 02:58 PM.
 
Old 08-07-2003, 03:15 PM   #6
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
securetty isnt a spelling error btw, it specifically deals with secure ttys, not security.
 
Old 08-07-2003, 05:55 PM   #7
kezz
LQ Newbie
 
Registered: Aug 2002
Distribution: Slackware 9 FreeBSD 4.8
Posts: 9

Rep: Reputation: 0
Would it be possible that root doesn't have a shell defined in /etc/passwd?

Don't know if this would make this kinda thing happen.

kezz
 
Old 08-08-2003, 06:24 PM   #8
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
I think you'd have far bigger problems. Many startup scripts are run as root and need eg. bash.
 
Old 08-12-2003, 11:16 AM   #9
visioning
LQ Newbie
 
Registered: Aug 2003
Location: OR
Distribution: redhat and suse
Posts: 6

Original Poster
Rep: Reputation: 0
Hi Proud:

Thank you for all your responses. I could figure out why the problem existed. I went ahead and reinstall the rh9 linux by using either workstation or server and not select the Network server package then it is OK for me to log on (text logon). I think there might be something to do with the Network server and or NIS.

Thanks again.

visioning
 
Old 08-12-2003, 11:25 AM   #10
visioning
LQ Newbie
 
Registered: Aug 2003
Location: OR
Distribution: redhat and suse
Posts: 6

Original Poster
Rep: Reputation: 0
Hi lfur:

Thank you for your response. I was frustrated enough and went ahead and installed the rh9 again with this time I didn't select the Network Server. And it seemed to work OK as I could log on. I hope someday I can find out exactly why it didn't let me log on.

Thank you,

visioning
 
Old 08-12-2003, 11:31 AM   #11
visioning
LQ Newbie
 
Registered: Aug 2003
Location: OR
Distribution: redhat and suse
Posts: 6

Original Poster
Rep: Reputation: 0
Hi Kezz:

Thank you for your reply. I went ahead and reinstalled the rh9 by choosing the server option and not selecting the Network Server during package selection, to give it a try, and it seemed to work. I don't really know why though. I am new to Linux. Hopefully someday I'll be able to find out why it didn't let me log on at the text logon screen.

Thanks again,

visioning
 
Old 08-12-2003, 09:45 PM   #12
qnumberq
LQ Newbie
 
Registered: Aug 2003
Location: Phoenix, AZ
Distribution: RH9.0, FBSD4.x
Posts: 4

Rep: Reputation: 0
Would you be able to tell us how many times it does this? Are they failed logins, or is the system just dropping you immediately when you expect to see a shell? Can we see a snip of /var/log/messages and perhaps /var/log/security?
 
Old 08-15-2003, 02:34 AM   #13
js_530
Member
 
Registered: Jul 2003
Posts: 162

Rep: Reputation: Disabled
It's not a good idea to allow root to login, instead, login as another user and "su -"[enter]and type the root password. That way, people would have to know two passwords to get root.
 
Old 08-28-2003, 04:31 PM   #14
visioning
LQ Newbie
 
Registered: Aug 2003
Location: OR
Distribution: redhat and suse
Posts: 6

Original Poster
Rep: Reputation: 0
Hi qnumberq:

Thank you for your reply. And also thanks everyone that I might miss mentioning here for your input to helping me. And sorry that I have been able to get to the forum lately. I just have to many things to do at work and home. Our company mostly deals with windows but we recently were interested in using Linux for some projects.

Anyway, I didn't have a lot of time and any more patient and went ahead and just reinstall redhat linux with a few networking options deselected and it seems to be OK now. And I can log on as root when I'd like to.

At first I got some problem see the network using samba as a mean and Konqueror as a browing app. I was not able to see windows from Linux box but can see linux from windows by using Konqueror. And after I play with samba a little more and update to the latest KDE (dload from kde.org in rpm (thanks to rpm inventor, it was very efficient) and now I can see the window network from linux using Konqueror. This is very nice. So I guess if we have the latest kde than it helps fix some browsing thing when using Konqueror (this is only my newbie thought.)

After all, thanks,

Visioning
 
  


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
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 10:28 PM
Booting into Single User on MDK 9 asks for root password instead of booting into root acadcworks Linux - General 6 01-10-2006 06:51 AM
Logged in as root, prompted for root password ta0kira Slackware 13 04-25-2005 01:29 AM
Change password without typing?; jago25_98 Linux - Security 1 10-08-2004 06:12 PM
Root password apffal Linux - General 1 09-09-2004 06:48 AM


All times are GMT -5. The time now is 11:21 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration