Posts Tagged ‘howtos’

uninstall officescan

Wednesday, February 25th, 2009

Suppose you have to uninstall Trend Micro OfficeScan without knowing the administrator password. In most cases it’s enough to set a new password in Ofcscan.ini. The ini file is located in C:OfficeScan or C:Program FilesTrend MicroOfficeScan dependin on the installation process config. Find the line starting with Uninstall_Pwd= and replace it with:

Uninstall_Pwd=70

When asked for a password during uninstall, enter “1″. On one computer this workaround did not work. One of my colleagues found the solution, by commenting the line starting with Master_Pwd=.

#Master_Pwd=......

cyrus mailbox recovery

Monday, February 23rd, 2009

Inconsistencies in mailboxes occur rarely, but they occur. There are three main reasons for an inconsistency:

• An email file deleted on the server (by an admin)
• Email files copied in the mailbox dir (back-up of emails deleted by the user)
• Corrupted files (disk errors, broken communication)

Emails are stored in files named like 8242. and there are two files that keep track of emails: cyrus.header and cyrus.index. If an email is missing on the server but it appears in these files, your user won’t be able to get email headers from the server. Outlook will report a 0x800CCC90 error while receiving mails, and Squirrelmail will say ERROR: Could not complete request. Unknown response from IMAP server: 1.* OK Message 8242 no longer exists.

To fix this problem you should use the tool called reconstruct. It searches for email files and updates the header and index file. Depending on your distribution of Linux, reconstruct can be found in different directories. In my case it was in /usr/lib/cyrus-imapd. reconstruct must be ran as the user cyrus, otherwise it will mess up dir permissions. Supposing you want to repair the mailbox of the user dummy, here are the commands you should use:

su cyrus
/usr/lib/cyrus-imapd/reconstruct -r user.dummy

deletemailbox: Permission denied

Tuesday, February 3rd, 2009

Having to disable some email accounts using cyradm, I’ve issued the command dm user.old_account. The response was deletemailbox: Permission denied. It seems that for security reasons the admin users don’t have permission to delete an account.

Assigning “d” access level (Delete a message and/or the mailbox itself) still doesn’t fix the problem. You have assign “c” (Create a new mailbox below the top-level mailbox) access level in order to delete an account. Here is the commands you need to delete the account “old_account”:

cyradm -u cyrus localhost
sam user.old_account cyrus c
dm user.old_account

power supply test

Thursday, December 18th, 2008

Quite often I need to test a power source to see if it runs or not. One example is when a new computer does not start, and you don’t know the problem. The first step is to test the power source. You can test it by shortcutting two pins on the main power connector. The connector has 20 or 24 pins (the last 4 pins are used for PCI-Express video cards).

Connect the power supply to 220V AC and shortcut the 14-15 (17-18 on 24 pin connector) pins with an insulated wire, as shown in the picture below. If the fan starts spinning, the power supply works.

atx 134x300 power supply test

How to reset the settings on a Cisco router

Sunday, September 7th, 2008

Why the need to restore the factory settings on a router? I see two possible reasons:

  • You want to sell / donate the router and protect your information
  • You need to reconfigure the router from scratch

Restoring the factory settings is done with the following 6 commands:

enable
configure terminal
config-register 0x2102
end
write erase
reload

When promted to save the configuration, say no. Here’s an output from a router:

myRouter>enable
Password:
myRouter#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
myRouter(config)#config-register 0x2102
myRouter(config)#end
myRouter#write erase
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
[OK]
Erase of nvram: complete
myRouter#reload

System configuration has been modified. Save? [yes/no]: no
Proceed with reload? [confirm]

...
(router reboots)
...

% Please answer 'yes' or 'no'.
Would you like to enter the initial configuration dialog? [yes/no]: no