Archive for the ‘System Administration’ Category

Playing with exim mail queue

Posted: 14th October 2014 by Babar Shafiq in System Administration
Tags: , , , ,

Command to view the queue To view the exim mail queue issue the following command: mailq OR exim -bp If exim is in /usr/sbin and /usr/sbin is not in your path, you’ll need to prefix the command with the full path like so: /usr/sbin/exim -bp Example output The outut from the above commands will look […]

To work around this issue, add the EnableAggressiveMemoryUsage registry entry to the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters Then, set the EnableAggressiveMemoryUsage registry entry to 1. To do this, follow these steps: Click Start, click Run, type regedit in the Open box, and then click OK. Click the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters On the Edit menu, point […]

One of my blog user “Chris” asked for FTP clean up script, so here it is: //CONFIG SECTION //******************************************************* // Credentials for FTP Server $source_server_ip = “your_domain_or_IP”; // Server IP or domain name eg: 212.122.3.77 or ftp.domain.tld // Credentials for FTP account $ftphost = “ip_or_hostname_of_ftp”; // FTP host IP or domain name $ftpacct = “userid”; […]

Verify SSL certificate using OpenSSL

Posted: 11th March 2014 by Babar Shafiq in System Administration
Tags: , , ,

Use this command to verify the SSL certificate for the domain www.somedomain.com openssl s_client -showcerts -connect www.somedomain.com:443 If the certificate is correctly installed the result should contain at the end: Verify return code: 0 (ok) That’s it

Password encrypted files in Linux

Posted: 25th February 2014 by Babar Shafiq in System Administration
Tags: , , , , , , , ,

  I am found of keeping password protected backups and most of the time I lost my super secret password thus unable to open my super important backups 🙂 just kidding. Like in windows we can simple right click and zip folders/files with passwords in text based terminals of linux I always want the same. […]

Monitor Web Site Files With Auditd

Posted: 21st January 2014 by Babar Shafiq in Security, System Administration
Tags: , , ,

  The Linux Auditing System and auditd are a great way to monitor who and when changes are made to the files in your website. To install and configure follow these steps: 1. Install auditd and related utilities: yum install audit 2. Make sure auditd is running: /sbin/chkconfig –list auditd auditd 0:off 1:off 2:on 3:on […]