locked out of RHEL 4 system


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users locked out of RHEL 4 system
# 1  
Old 12-02-2010
locked out of RHEL 4 system

Hi,

I modified file /etc/pam.d/system-auth, to include "dcredit=-1 lcredit=-1 ucredit=-1"

Now no one can login in. I still have an open session...but I cant even su to another account.

I restored the file to the original, but still, no one can login in!

Any help very appreciated!


I get these messages in /etc/log/secure

Dec 2 13:17:54 xxxx xinetd[4716]: START: pblocald pid=6930 from=x.x.x.x
Dec 2 13:18:06 xxxx sshd[6933]: Accepted password for xxxx from ::ffff:x.x.x.x port 2317 ssh2
Dec 2 13:18:06 xxxx sshd[6933]: fatal: PAM: pam_open_session(): Permission denied
# 2  
Old 12-02-2010
You have a couple of choices

boot from cdrom - mount the / filesystem manually, make changes

boot to runlevel 1 - and if you can get in as root, make changes.
# 3  
Old 12-03-2010
Quote:
Originally Posted by jim mcnamara
You have a couple of choices

boot from cdrom - mount the / filesystem manually, make changes

boot to runlevel 1 - and if you can get in as root, make changes.

Thanks, but like I said, I still have an open session. I just need to know what needs to be done to fix this.

I have already restored the file, but still, no one can login in. I have even replaced the file from an equivelent system via scp (which is still working), but that did not work either. So, it is not the file itself that is munged.

Thanks!

---------- Post updated 12-03-10 at 11:29 AM ---------- Previous update was 12-02-10 at 04:35 PM ----------

Another internal admin figured this out. Hope this helps someone else.

Doing a "su - user" (were user is some system account) also produces the error as I mentioned.

So, "strace su - user" actually points directly to the issue.

open("/var/log/lastlog", O_RDWR) = -1 EFBIG (File too large)

Looking at /var/log/lastlog shows the reported file size to big for the filesystem. It's a sparse file. lol. Sweet. Nuke it, touch it. Viola. Working again.

T.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Red Hat

RHEL Linux process activity monitoring tool from windows 7 system

I have 2 RHEL 5.9 system where customized applications are running. These 2 servers are with in a network (LAN) with each other.One application in say Server 1 can talk to another application in server 2 and vice versa. The applications are exchanging data among each other. Recently I am... (0 Replies)
Discussion started by: Anjan Ganguly
0 Replies

2. Red Hat

Error throwing while installing vsftpd package in rhel 6. using rhel 6 dvd.

Hi all, Im studying rhcsa as of now, so yum installation and dependencies are messing me to not workit out. i have dual os, win 7 & rhel 6. i have tried this installation of vsftpd package with rhel 6 dvd in VM rhel 6 in win 7 as well as host rhel 6.still the same issue. below error... (6 Replies)
Discussion started by: redhatlbug
6 Replies

3. Red Hat

Does RHEL 5 provide a command to collect RHEL system log in single compress file?

Hi, I heard a command that can collect all RHEL 5 log in a single compress file before I forget. Does any body know...What the command is ? Thanks. (4 Replies)
Discussion started by: nnnnnnine
4 Replies

4. Solaris

fssnap error :snapshot error: File system could not be write locked

Hi Guys. This is part of my filesystem structure : Filesystem size used avail capacity Mounted on /dev/md/dsk/d0 47G 5.2G 42G 12% / /devices 0K 0K 0K 0% /devices ctfs 0K 0K 0K 0% ... (2 Replies)
Discussion started by: aggadtech08
2 Replies

5. Solaris

How to mount a Files System where RHEL is installed on a Sun server Machine..

Hi Everyone, I have a machine where RHEL(Red Hat Enterprise Linux) is installed and few of our products are saved on the same. Our products work only on sparc 6 + and i want to basically asve the products on the machine which has RHEL installed on it and mount the drive on the sun server and... (2 Replies)
Discussion started by: sankasu
2 Replies

6. Red Hat

Updating/installing hplip system RHEL 5.2 64bit

I have a RHEL 5.2 server that I need to connect a new HP Laserjet p2035n networked printer. I can not install the latest version of 'hplip' since it generates an error (missing lib....) Does anyone know where I can find a PPD file for CUPS? Or can anyone tell how to remove the double blank... (1 Reply)
Discussion started by: uxlunatick
1 Replies

7. UNIX for Advanced & Expert Users

need sample system o/p RHEL/Debian

Hi, Could somebody sent me sample output of below commands on 1) Debian linux and 2) RHEL3 and 3) any RHEL version less than 3, a) uname -a b) cat /etc/issue c) cat /etc/redhat-release or other equivalent file Thanks in advance - Krishna (0 Replies)
Discussion started by: krishnamurthig
0 Replies

8. Red Hat

RHEL(AS3)-Upd(5):System Cannot boot ....

Hi, After a reboot, One of My Proliant Machine DL380 could not load the O/S. Raid 1+0 was configured. Some Gathered Facts: During Boot from System Rescue, the following message appears "You don't have any linux partitions.Press return to get a shell. The system will reboot... (1 Reply)
Discussion started by: Muhammad Ahmad
1 Replies
Login or Register to Ask a Question