Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
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.
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..
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..
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 ?
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.
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 ..