cancel
Showing results for 
Search instead for 
Did you mean: 

WTMP file

WTMP file

Hi All,

We are using HP-UNIX 11 and 10.01.
Can we null wtmp file present in /var/adm directory.

cat /dev/null > /var/adm/wtmp

Is this the right command, please let me know.

Thx,
8 REPLIES
Jupinder Bedi
Respected Contributor

Re: WTMP file

yes you can do it . there is no any problem

you can do as follows

> /var/adm/wtmp
All things excellent are as difficult as they are rare
Michael Steele_2
Honored Contributor

Re: WTMP file

Hi

> /var/adm/wtmp
> /var/adm/wtmps

This will empty them but leave them in place with permissions.

inetd -l should start enhanced logging.

To fix:
/usr/sbin/acct/wtmpfix < /var/adm/wtmp

Is there a corruption problem?
Support Fatherhood - Stop Family Law
Kapil Jha
Honored Contributor

Re: WTMP file

If you not interested in the data inside this file (which is login information)
go ahead and null it.
cat /dev/null > /var/adm/wtmp
> /var/adm/wtmp

both are same thing except second would run one less program ie cat.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Jupinder Bedi
Respected Contributor

Re: WTMP file

you profile says


Forums user name: ITRC forums
Company name:
Country / Region: usa
Personal quote:
Certification:
ITRC member since: January 05, 2010
Last contribution date: February 04, 2010
I have assigned points to 0 of 16 responses to my questions.

Please assign points to those who help you in this forum and this is the only way to say thanks here



All things excellent are as difficult as they are rare

Re: WTMP file

Thx all to answer my question.
Johnson Punniyalingam
Honored Contributor

Re: WTMP file

Check attachment, "MS Power point"

which has been created by "Dusan Baljevic
"

which give better picture how to maintain System Logs HP-UX 11i Examples of Log Directories and Files
grow out of bounds

HTH,

Regards,
Johnson
Problems are common to all, but attitude makes the difference
RC Park
Frequent Advisor

Re: WTMP file

To Johnson,

When attempting to get to your attachment, I click the paperclip, then it wants to save a ".do" file, not what you suggested. Can you verify? Thanks,
-RCP
Dennis Handly
Acclaimed Contributor

Re: WTMP file

>RCP: then it wants to save a ".do" file

I see a .ppt file.