rotate auth.log ubuntu
to rotate auth.log on ubuntu add the following to your : { rotate 5 daily copytruncate compress }
to rotate auth.log on ubuntu add the following to your : { rotate 5 daily copytruncate compress }
Why does your windows service lose its password on restart? This is probably occurring because: You are using a Domain Account as the user to run the service as Your default domain policy (or another GPO) have explicitly listed…
How can you export all users from an OU in active directory on server 2003? Create a file called exportusers.vbs and paste in this text: Dim ObjWb Dim zz Set objRoot = GetObject(“LDAP://RootDSE”) strDNC = objRoot.Get(“DefaultNamingContext”) Set objDomain = GetObject(“LDAP://”…
When using Mac OS X, you will encounter issues when using SVNKit as the SVN interface from within Eclipse when your SVN password changes. To alleviate the issue, you should install the JavaHL Subversion client and leverage this SVN interface…
I recently had an issue where command + tab would not show all of my currently running applications. I loaded up console messages and saw this: 1/18/12 11:26:49 PM 11:26:49 PM com.apple.Dock.agent[901] 901 Wed Jan 18 23:26:49 mac Dock[901] :…
To delete all currently stored alerts and related data in the ossec database execute these commands in MySQL Editor: truncate table alert; truncate table data; Bash Script: #!/usr/local/bin/bash # #Stop ossec, remove old alerts, start ossec echo “stopping ossec” /var/ossec/bin/ossec-control…
Devcon Devcon is a windows cmd that allows you to list all driver device ids. If it is not installed on your system can you can download it here from microsoft How to use devcon from the command prompt to…
having trouble identifying the pid using netstat on a mac? Try this instead: # sudo lsof -i -P This will list all open files and the current socket they are using and the actual port (using an integer).
Here’s a bash kill liferay script! This should kill any running liferay or liferay social office on a linux system. Open up your favorite editor and paste this in #!/bin/bash # #Script name: kill_liferay.sh # #Purpose: To kill any running…
To Gzip files older than one day place this in a cronjob: TODAY=`date +”%Y-%m-%d”` for logfile in ; do # grab the %Y-%m-%d out of the name DTS=${logfile:(-14):10} if [ $DTS != $TODAY ]; then # compress in place gzip…