regarding /var/log/wtmp and /var/log/utmp

amiteshsahay at aol.com amiteshsahay at aol.com
Fri Jul 30 07:44:26 UTC 2010


 Dear Members, 

while using "logrotate"  command, what do we mean by "GLOBAL OPTION", & "LOCAL OPTION".

And what would be the prospective answer to the following question ?

You wish to rotate all your logs weekly except for the/var/log/wtmp log which you wish to rotate monthly. How could youaccomplish this. 
a. Assign a global option to rotate all logs weekly and a local option to rotate the /var/log/wtmp log monthly.
b. Assign a local option to rotate all logs weekly and a global option to rotate the /var/log/wtmp log monthly.
c. Move the /var/log/wtmp log to a different directory. Run logrotate against the new location.
d. Configure logrotate to not rotate the /var/log/wtmp log. Rotate it manually every month.

Regards, 

Amitesh

 





More information about the redhat-list mailing list