Category Archives: Linux

linux

Access Windows 7 admin shares from Linux

Posted on .

I was trying to access the administration shares (c$, admin$, etc.) from smbclient on a Debian/Squeeze machine and was being given:
tree connect failed: NT_STATUS_ACCESS_DENIED

If your Windows 7 workstation is on a domain, you won’t get this issue, however if it is on a workgroup then the following registry setting is required:

More information found at http://support.microsoft.com/kb/951016.

Downloading the following .reg file and running it on the workstation will make the above change.

Download
  LocalAccountTokenFilterPolicy.reg (334 bytes, 2,418 hits)

Pinning a package example for Debian/Ubuntu

Posted on .

I wanted backuppc to install from unstable, so I added the following:

/etc/apt/preferences.d:

Quick explanation:
– Moving “squeeze” (my base installation) above 500 keeps it as priority default installation.
– Having unstable below 500 means it has lower priority of anything already installed.
– Then pinning backuppc package to the top so it’ll get installed with unstable.

Integrating DSPAM with Spamassassin

Posted on .

Postfix -> DSPAM -> Amavis/Spamassassin -> Postfix

Spamassassin can add scores depending on the DSPAM output by reading the headers that DSPAM adds.

These rules can be added to local.cf. They read confidence and result headers. Edit the scores to suit your setup.

PostFWD example configuration

Posted on .

This is something I’ve been tweaking for a few months now. I’ve got it filtering 99% of spam before it hits content filtering.

Postfix v2.5.5 using PostFWD v1.18 as a policy daemon with PostGrey v1.31 for greylisting.

killall5

Posted on .

DO NOT run this command.

It kills everything ….

KILLALL5(8)
Manual KILLALL5(8)

NAME
killall5 -- send a signal to all processes.

SYNOPSIS
killall5 -signalnumber

DESCRIPTION
killall5 is the SystemV killall command. It sends a signal to all processes except kernel threads and the processes in its own session, so it won't kill the shell that is running the script it was called from. Its primary (only) use is in the rc scripts found in the /etc/init.d directory.