LinuxQuestions.org
Help answer threads with 0 replies.
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-14-2006, 03:11 AM   #1
boborano
LQ Newbie
 
Registered: Mar 2006
Posts: 4

Rep: Reputation: 0
Root Login Problem ...


The machine is running on RHEL 4 .. whenever root tries to login as root and password redhat it is showing "Incorrect Username or Password"..and /etc/securetty file is missing ..
I booted the machine in runlevel 3 and edited the /etc/pam.d/login and make the line

auth required pam_securetty.so to
auth optional pam_securetty.so


chked /etc/passwd , /etc/shadow,
/etc/rc.d/rc.sysinit , /etc/inittab, /etc/rc.local
all found ok ..

no file attributes have been set up on these files as #lsattr shows normal listing ..
Pls suggest wht else i shoud chk in order to get rid of these prob..
 
Old 08-14-2006, 04:00 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
it sounds like you've just forgotten the password... have you tried resetting it via booting to runlevel 1?
 
Old 08-14-2006, 07:27 AM   #3
boborano
LQ Newbie
 
Registered: Mar 2006
Posts: 4

Original Poster
Rep: Reputation: 0
i tried it too ..but the problem seems to lie on PAM ..
Normally , root can login into a system if /etc/securetty is missing ..in this case /etc/securetty file is missing therefore root should log in to the system ..but it can't .. i even tried to install the rpm setup-2.5.37-1.3 ..but after succesfull installation the file cannot be recreated ..it seems /etc/securetty file cannot be installed by a mere installation of the requisite rpm..

Last edited by boborano; 08-14-2006 at 07:28 AM.
 
Old 08-14-2006, 12:24 PM   #4
live_dont_exist
Member
 
Registered: Aug 2004
Location: India
Distribution: Redhat 9.0,FC3,FC5,FC10
Posts: 257

Rep: Reputation: 30
How about mounting ur root partition off a rescue CD ...or going to Single user...

touch /etc/securetty; echo console > /etc/securetty

Does that work??

Cheers
Arvind
 
Old 08-16-2006, 01:25 AM   #5
boborano
LQ Newbie
 
Registered: Mar 2006
Posts: 4

Original Poster
Rep: Reputation: 0
i also tried recreating the /etc/securetty file ... and sets the permission of the file to 644 ...but still it doesn't seems to work ...
With rescue CD ...the prob can be solved ..is there any other method ...without using rescue CD ...to solve the prob ?
 
Old 08-16-2006, 01:39 AM   #6
live_dont_exist
Member
 
Registered: Aug 2004
Location: India
Distribution: Redhat 9.0,FC3,FC5,FC10
Posts: 257

Rep: Reputation: 30
No .. not just recreate... the /etc/securetty file holds a list of all terminals users are allowed to log in from...so if its just a blank file I'mnot sure its any good...so create the file and put in the word "console" in it...log out , reboot whatever n see what happens...

Rescue CD --> Solves all problems ...how?? ... all I was hinting at is to somehow mount your system. It wouldnt matter if you did it through Grub or the Rescue CD.

Keep us posted.
Cheers
Arvind
 
Old 08-16-2006, 02:48 AM   #7
boborano
LQ Newbie
 
Registered: Mar 2006
Posts: 4

Original Poster
Rep: Reputation: 0
recreate means i have done all the necessary entries that was supposed to be in the /etc/securetty ...mere installation of the rpm for /etc/securetty would not do ..and above all ..if /etc/securetty file is not there ..root should be able to login ..but if the file is there and blank we must make a necessary changes in /etc./pam.d/login file ..also chked /etc/pam.d/security...still there is some problem persists in the system which i can't find ..
 
  


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
MySQL root login problem AnRkey Linux - Software 2 05-10-2006 06:31 AM
Suse 9.3 root login problem SnypR SUSE / openSUSE 5 10-06-2005 06:40 AM
login root problem khebs Linux - Security 1 08-30-2005 03:10 PM
SUSE 9 root login problem suchi Linux - Networking 2 07-24-2005 01:44 PM
Problem Login As Root, Help!!!!! abulafiar Linux - Newbie 4 08-15-2004 03:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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