ITEM: AI0085L

ROOT DIRECTORY IS FULL /HOW TO CLEAN OUT



Question:

THE CUSTOMERS ROOT DIRECTORY IS FULL AND HAS A COUPLE OF FILES THAT
ARE GROWING TO FAST/WANTS TO KNOW HOW TO CLEAN OUT

Response:

ENV: 3.2.5, R24
DESC: says / is full
ACT: find / -xdev -size +1000 -ls
     has /etc/vg/vg***

     Don had questions about /etc/security/lastlog
     He says that it seems to be growing. I told him that the file
     will have entries for the users on the system. If there are
     5 users they would 6 entries which includes root too.

     But Don says there are a lot of entries and would like more info
     about them

NEXT: rq to frank, thanks
  

Response:

The customer has users who make a lot of typo's when logging in. 
His root file system had filled up and in looking for the problem 
he discovered that the lastlog file in /etc/security has grown 
quite large.  He wanted to remove it or reduce it without investing
a lot of time in it.  
The invalid users were the problem.  

I gave him the following command to create the new file to replace 
the existing one.  
"grep -p  time_last_login /etc/security/lastlog > /tmp/new.lastlog"
Once he was satisfied with it he could copy /tmp/new.lastlog over
 /etc/security/lastlog.
The key is that the string "time_last_login" does not appear in the 
invalid stanzas (and it does appear in the comments in the header).

Response:

Closing by agreement.


Support Line: ROOT DIRECTORY IS FULL /HOW TO CLEAN OUT ITEM: AI0085L
Dated: April 1996 Category: N/A
This HTML file was generated 99/06/24~13:30:27
Comments or suggestions? Contact us