Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-14-2006, 03:11 AM
|
#1
|
LQ Newbie
Registered: Mar 2006
Posts: 4
Rep:
|
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..
|
|
|
08-14-2006, 04:00 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
it sounds like you've just forgotten the password... have you tried resetting it via booting to runlevel 1?
|
|
|
08-14-2006, 07:27 AM
|
#3
|
LQ Newbie
Registered: Mar 2006
Posts: 4
Original Poster
Rep:
|
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.
|
|
|
08-14-2006, 12:24 PM
|
#4
|
Member
Registered: Aug 2004
Location: India
Distribution: Redhat 9.0,FC3,FC5,FC10
Posts: 257
Rep:
|
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
|
|
|
08-16-2006, 01:25 AM
|
#5
|
LQ Newbie
Registered: Mar 2006
Posts: 4
Original Poster
Rep:
|
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 ?
|
|
|
08-16-2006, 01:39 AM
|
#6
|
Member
Registered: Aug 2004
Location: India
Distribution: Redhat 9.0,FC3,FC5,FC10
Posts: 257
Rep:
|
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
|
|
|
08-16-2006, 02:48 AM
|
#7
|
LQ Newbie
Registered: Mar 2006
Posts: 4
Original Poster
Rep:
|
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 ..
|
|
|
All times are GMT -5. The time now is 12:59 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|