Thursday, February 13, 2014

Reset Web GUI Password for FreeNAS 9x

I change the web gui password for FreeNAS, get to a shell prompt on the box and type the following:

python /usr/local/www/freenasUI/ changepassword admin

This is a repost from:

Monday, June 24, 2013

Fixing "bdb_equality_candidates" errors on your OpenLDAP server

Repost from

  1. Stop the LDAP server:
    sudo stop slapd
  2. Open the right OpenLDAP config file with an editor:
    sudo vi /etc/ldap/slapd.d/cn\=config/olcDatabase\=\{1\}hdb.ldif
  3. Add new lines (after the one with olcDbIndex: objectClass eq in it) for the missing indexes.
    olcDbIndex: cn eq
    olcDbIndex: gidNumber eq
    olcDbIndex: memberUid eq
    olcDbIndex: uid eq
    olcDbIndex: uidNumber eq
    olcDbIndex: uniqueMember eq
  4. Run the OpenLDAP indexer for your configuration:
    sudo -u openldap slapindex -F /etc/ldap/slapd.d/
  5. Start the LDAP server:
    sudo start slapd
PS: don't forget to back up your OpenLDAP database (in /var/lib/ldap) before you touch it.

Saturday, March 3, 2012

Linux Date Commands

Command to find out the date 2 weeks ago and format in %Y/%m/%d

date --date='-14 days' '+%Y/%m/%d'

Friday, December 10, 2010

Network Scan

Need to scan your network to find available ipaddress? If you are using a linux distro, then you have nmap at your service. One simple command is all it takes.

nmap –s

nmap has many other command switches available. Check our their website for more information.

Thursday, November 18, 2010

Motherboard failure today

We have a Zimbra mail server at work running on top of a 64bit Ubuntu 8.0.4 OS. The computer is a Dell Precision 380 and after a power outage last night, (yes it is connected to a UPS) the motherboard got fried. Luckly, I have another Precision 380 I could swap all the drives, memory and network interfaces to. When I booted up, all went as planned until I realized that my internal network card eth0 was not found. Eth0 is an on-board card, so I new it was working but Ubuntu was not finding it. I ifconfig’ed to check for eth1, eth2, eth3…etc…finally I found it…it was not eth4…weird, I thought. So then I went to /etc/network/interfaces to change eth0 to eth4 and all would be well. Correct? Not so fast. I could not get eth4 to come up with the static ipaddress that is listed in /etc/network/interfaces. What the heck…..did some more digging and found a udev rule that ties the mac address to the network card. So I had to edit the udev rule to reflect the new mac address of eth0 and then restart the udev service and what do you know…eth0 came up again. Awesome!

Rule to edit:

eth0 was the first defined rule and all thast was needed was to modify the mac address to reflect the onboard nic in the new computer.

Friday, September 10, 2010

32bit ODBC Dialog In Windows 7

Ever wonder how to get the 32bit ODBC dialog box from within Windows 7?

Yea me to…..Well I found it today….Run the command below to get the 32bit ODBC dialog.


Wednesday, August 11, 2010

Watch errors in linux maillog fly by…

Whether you are using Postfix or Sendmail with Spamassassin, you can watch your maillogs within an ssh session by using the following code:

tail -f /var/log/maillog | egrep '(reject|error|warning|fatal|panic)'

This will help to troubleshoot rejected emails or emails rejected due to Spamassassin blocking the email as Spam.