include "title.php";?>
Example of Interactive chpass by Superuser
#Changing user database information for jru.', 'Modifying FreeBSD Shells', '', 'publish', 'open', 'open', '', 'modifying-freebsd-shells', '', '', '2007-01-04 16:25:00', '2007-01-04 16:25:00', '', 0, 'http://www.andrewkrone.com/?p=71', 0, 'post', '', 0), (72, 2, '2007-01-10 05:25:00', '2007-01-10 05:25:00', 'This is ridiculous, the new \"iPhone\" is supposed to be revolutionary, cutting edge, high tech, blah, blah, blah.
Login: jru
Password: *
Uid [#]: 1001
Gid [# or name]: 1001
Change [month day year]:
Expire [month day year]:
Class:
Home directory: /home/jru
Shell: /usr/local/bin/zsh
Full Name: J. Random User
Office Location:
Office Phone:
Home Phone:
Other information:
--
--Sent from Andy's Samsung u740
--
Mobile message from RemoMail powered by Remoba Inc.', 'test from phone', '', 'publish', 'open', 'open', '', 'test-from-phone', '', '', '2007-10-25 05:05:00', '2007-10-25 05:05:00', '', 0, 'http://www.andrewkrone.com/?p=81', 0, 'post', '', 0),
(82, 2, '2007-10-25 14:49:00', '2007-10-25 14:49:00', 'Tide is almost at it's highest pt today. Looks like small 1 ft waves near hobson, very smooth, virtually no wind. Looks a lot better near the pier at mussel shoals. Rincon is empty right now, about 4 surfers. Possibly the occassional 4 ft set
--
Mobile message from RemoMail powered by Remoba Inc.', 'Surf Report - 10/25', '', 'publish', 'open', 'open', '', 'surf-report-1025', '', '', '2007-10-25 14:49:00', '2007-10-25 14:49:00', '', 0, 'http://www.andrewkrone.com/?p=82', 0, 'post', '', 0),
(83, 2, '2007-10-26 14:43:00', '2007-10-26 14:43:00', 'Just drove by Faria, 1 person out there, looks like a 2 ft wave at very hi tide.
Mussel shoals looks pretty flat.
Rincon is difficult to see from a light haze. 8 people are out, sets look well defined, no pipiing though', 'Surf Report 10/26', '', 'publish', 'open', 'open', '', 'surf-report-1026', '', '', '2007-10-26 14:43:00', '2007-10-26 14:43:00', '', 0, 'http://www.andrewkrone.com/?p=83', 0, 'post', '', 0), (84, 2, '2007-10-29 14:42:00', '2007-10-29 14:42:00', 'Flat at faria and mondos, flat in front of la conchita, just really really poor. Its about mid-tide and rising right now. Looks like the wind might be kicking up later today, there's no marine layer at the beach, although I can't see the islands.
--
Mobile message from RemoMail powered by Remoba Inc.', 'Surf Report - 10/29', '', 'publish', 'open', 'open', '', 'surf-report-1029', '', '', '2007-10-29 14:42:00', '2007-10-29 14:42:00', '', 0, 'http://www.andrewkrone.com/?p=84', 0, 'post', '', 0),
(85, 2, '2007-10-30 14:47:00', '2007-10-30 14:47:00', 'No white water from the 101 looking at California street. 1 person out at Faria, doesnt look like theres waves though. Tide is mid-tide, everywhere looks like a wash out. No waves or people at Rincon or the mussel shoals pier.
--
Mobile message from RemoMail powered by Remoba Inc.', 'Surf Report - 10/30', '', 'publish', 'open', 'open', '', 'surf-report-1030', '', '', '2007-10-30 14:47:00', '2007-10-30 14:47:00', '', 0, 'http://www.andrewkrone.com/?p=85', 0, 'post', '', 0),
(86, 2, '2007-11-01 17:27:00', '2007-11-01 17:27:00', 'The trim function removes all specified characters either from the beginning or the ending of a string. This is very useful when you want to cleanup data that may have different column lengths and unusable or annoying characters or blank spaces.
An example would be a city. Some cities may be long like, \"San Francisco\" whereas others might be short. Because the column may include leading or trailing blank spaces it\'s a good idea to \"trim\" the field.
This function can also be useful to cleanup data for validation, some people may unintentionally add a blank space in a form field (i.e. \" Andrew Krone\" instead of just \"Andrew Krone\".
Ultimately, it just makes data look cleaner.
For example:
trim(\' Ventura \') would return \'Ventura\'
trim(\' \' from \' tech \') would return \'tech\'
trim(leading \'0\' from \'000123\') would return \'123\'
trim(trailing \'1\' from \'Tech1\') would return \'Tech\'
trim(both \'1\' from \'123Tech111\') would return \'23Tech\'
Oracle 8i, Oracle 9i, Oracle 10g, Oracle 11g
CASE
WHEN \'TREK\' THEN \'Lance\'\'s Trek\'
WHEN \'LITESPEED\' THEN \'Lance\'\'s other Trek\'
ELSE \'Obsolete Bike\'
(FULL_NAME, SLOGAN)
(\'Andrew Krone\', \'It\'\'s time Andy\'\'s website stopped boring people\');
This message was sent using PIX-FLIX Messaging service from Verizon Wireless!
To learn how you can snap pictures with your wireless phone visit
www.verizonwireless.com/getitnow/getpix.
To learn how you can record videos with your wireless phone visit www.verizonwireless.com/getitnow/getflix.
To play video messages sent to email, QuickTime� 6.5 or higher is required. Visit www.apple.com/quicktime/download to download the free player or upgrade your existing QuickTime� Player. Note: During the download
process when asked to choose an installation type (Minimum, Recommended or Custom), select Minimum for faster download.', '', '', 'publish', 'open', 'open', '', '98', '', '', '2008-03-04 15:44:00', '2008-03-04 15:44:00', '', 0, 'http://www.andrewkrone.com/?p=98', 0, 'post', '', 0),
(99, 2, '2008-03-04 23:12:00', '2008-03-04 23:12:00', '
This message was sent using PIX-FLIX Messaging service from Verizon Wireless!
To learn how you can snap pictures with your wireless phone visit
www.verizonwireless.com/getitnow/getpix.
To learn how you can record videos with your wireless phone visit www.verizonwireless.com/getitnow/getflix.
To play video messages sent to email, QuickTime� 6.5 or higher is required. Visit www.apple.com/quicktime/download to download the free player or upgrade your existing QuickTime� Player. Note: During the download
process when asked to choose an installation type (Minimum, Recommended or Custom), select Minimum for faster download.', '', '', 'publish', 'open', 'open', '', '99', '', '', '2008-03-04 23:12:00', '2008-03-04 23:12:00', '', 0, 'http://www.andrewkrone.com/?p=99', 0, 'post', '', 0),
(100, 2, '2008-03-06 16:14:00', '2008-03-06 16:14:00', '
This message was sent using PIX-FLIX Messaging service from Verizon Wireless!
To learn how you can snap pictures with your wireless phone visit
www.verizonwireless.com/getitnow/getpix.
To learn how you can record videos with your wireless phone visit www.verizonwireless.com/getitnow/getflix.
To play video messages sent to email, QuickTime� 6.5 or higher is required. Visit www.apple.com/quicktime/download to download the free player or upgrade your existing QuickTime� Player. Note: During the download
process when asked to choose an installation type (Minimum, Recommended or Custom), select Minimum for faster download.', '', '', 'publish', 'open', 'open', '', '100', '', '', '2008-03-06 16:14:00', '2008-03-06 16:14:00', '', 0, 'http://www.andrewkrone.com/?p=100', 0, 'post', '', 0),
(101, 2, '2008-03-07 00:46:00', '2008-03-07 00:46:00', '
This message was sent using PIX-FLIX Messaging service from Verizon Wireless!
To learn how you can snap pictures with your wireless phone visit
www.verizonwireless.com/getitnow/getpix.
To learn how you can record videos with your wireless phone visit www.verizonwireless.com/getitnow/getflix.
To play video messages sent to email, QuickTime� 6.5 or higher is required. Visit www.apple.com/quicktime/download to download the free player or upgrade your existing QuickTime� Player. Note: During the download
process when asked to choose an installation type (Minimum, Recommended or Custom), select Minimum for faster download.', '', '', 'publish', 'open', 'open', '', '101', '', '', '2008-03-07 00:46:00', '2008-03-07 00:46:00', '', 0, 'http://www.andrewkrone.com/?p=101', 0, 'post', '', 0);
INSERT INTO `wp_m3twcb_posts` (`ID`, `post_author`, `post_date`, `post_date_gmt`, `post_content`, `post_title`, `post_excerpt`, `post_status`, `comment_status`, `ping_status`, `post_password`, `post_name`, `to_ping`, `pinged`, `post_modified`, `post_modified_gmt`, `post_content_filtered`, `post_parent`, `guid`, `menu_order`, `post_type`, `post_mime_type`, `comment_count`) VALUES
(102, 2, '2008-03-07 16:05:00', '2008-03-07 16:05:00', '
This message was sent using PIX-FLIX Messaging service from Verizon Wireless!
To learn how you can snap pictures with your wireless phone visit
www.verizonwireless.com/getitnow/getpix.
To learn how you can record videos with your wireless phone visit www.verizonwireless.com/getitnow/getflix.
To play video messages sent to email, QuickTime� 6.5 or higher is required. Visit www.apple.com/quicktime/download to download the free player or upgrade your existing QuickTime� Player. Note: During the download
process when asked to choose an installation type (Minimum, Recommended or Custom), select Minimum for faster download.', '', '', 'publish', 'open', 'open', '', '102', '', '', '2008-03-07 16:05:00', '2008-03-07 16:05:00', '', 0, 'http://www.andrewkrone.com/?p=102', 0, 'post', '', 0),
(103, 2, '2008-03-11 15:31:00', '2008-03-11 15:31:00', '
www.verizonwireless.com/getitnow/getpix.
To learn how you can record videos with your wireless phone visit www.verizonwireless.com/getitnow/getflix.
To play video messages sent to email, QuickTime® 6.5 or higher is required. Visit www.apple.com/quicktime/download to download the free player or upgrade your existing QuickTime® Player. Note: During the download
process when asked to choose an installation type (Minimum, Recommended or Custom), select Minimum for faster download.', '', '', 'publish', 'open', 'open', '', '103', '', '', '2008-03-11 15:31:00', '2008-03-11 15:31:00', '', 0, 'http://www.andrewkrone.com/?p=103', 0, 'post', '', 0),
(104, 2, '2008-03-13 20:48:00', '2008-03-13 20:48:00', '
www.verizonwireless.com/getitnow/getpix.
To learn how you can record videos with your wireless phone visit www.verizonwireless.com/getitnow/getflix.
To play video messages sent to email, QuickTime® 6.5 or higher is required. Visit www.apple.com/quicktime/download to download the free player or upgrade your existing QuickTime® Player. Note: During the download
process when asked to choose an installation type (Minimum, Recommended or Custom), select Minimum for faster download.', '', '', 'publish', 'open', 'open', '', '104', '', '', '2008-03-13 20:48:00', '2008-03-13 20:48:00', '', 0, 'http://www.andrewkrone.com/?p=104', 0, 'post', '', 0),
(105, 2, '2008-03-18 16:34:00', '2008-03-18 16:34:00', 'Outlook 2003 defies intuition. It would make sense that there should be an outbox or a sent items or a \"sent\" but Microsoft would rather make it really confusing. If you\'re connecting through imap and you want to have a specific imap folder say \"Sent Items\" store your sent mail you need to create a rule:
Tools > Rules > New Rule
Don\'t use the template, start from scratch.
What you want to create is a rule that reads like this:
Apply this rule after I send the message. Uses the message form and on this machine only move a copy to Sent Items folder.
-Andy', 'Outlook 2003 Not Saving to Sent Items Folder', '', 'publish', 'open', 'open', '', 'outlook-2003-not-saving-to-sent-items-folder', '', '', '2008-03-18 16:34:00', '2008-03-18 16:34:00', '', 0, 'http://www.andrewkrone.com/?p=105', 0, 'post', '', 0),
(106, 2, '2008-03-19 19:08:00', '2008-03-19 19:08:00', 'Thank to the following web site:
http://www.cromwell-intl.com/unix/sendmail-ssl.html
-Andy
How to make sendmail use SSL/TLS whenever possible
1. Create a certificate directory and go there:
# mkdir /etc/mail/cert
# cd /etc/mail/cert
2. Create a key for the server, giving a new pass phrase when prompted:
# openssl genrsa -des3 -out server.key 1024
# openssl rsa -in server.key -out server.key.open
3. Create a clear-text copy of the key (so it is not pass-phrase-protected), giving the pass phrase when asked:
# openssl req -new -x509 -days 3650 -key server.key.open -out server.crt
4. Answer the X.509v3 questions appropriately.
5. Make the files root-read-only:
# chmod 600 server.*
6. Edit /etc/mail/sendmail.cf and add these lines. You should find commented-out versions of these settings in the file, maybe about a third of the way through it.
O CACertPath=/etc/mail/cert
O CACertFile=/etc/mail/cert/server.crt
O ServerCertFile=/etc/mail/cert/server.crt
O ServerKeyFile=/etc/mail/cert/server.key.open
O ClientKeyFile=/etc/mail/cert/server.crt
7. Restart sendmail:
# /etc/init.d/sendmail restart', 'SSL with Sendmail', '', 'publish', 'open', 'open', '', 'ssl-with-sendmail', '', '', '2008-03-19 19:08:00', '2008-03-19 19:08:00', '', 0, 'http://www.andrewkrone.com/?p=106', 0, 'post', '', 0),
(107, 2, '2008-03-20 15:23:00', '2008-03-20 15:23:00', 'Yum should work out of the box: but it doesn\'t. On CentOS (Linux) you may see the following:
[root@yourservername etc]# yum update apcupsd
Loading \"installonlyn\" plugin
Setting up Update Process
Setting up repositories
Reading repository metadata in from local files
Could not find update match for apcupsd
No Packages marked for Update/Obsoletion
Add these to \"/etc/yum.repos.d/CentOS-Base.repo\":
[extras2]
name=Fedora Extras - $releasever - $basearch
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/6/$basearch/
gpgcheck=0
gpgkey=http://download.fedora.redhat.com/pub/fedora/linux/extras/RPM-GPG-KEY-Fedora-Extras
NOW, try it again:
[root@servername etc]# yum install apcupsd
Loading \"installonlyn\" plugin
Setting up Install Process
Setting up repositories
extras2 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 1.7 MB 00:11
################################################## 5211/5211
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for apcupsd to pack into transaction set.
apcupsd-3.12.4-5.fc6.i386 100% |=========================| 15 kB 00:00
---> Package apcupsd.i386 0:3.12.4-5.fc6 set to be updated
--> Running transaction check
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
apcupsd i386 3.12.4-5.fc6 extras2 405 k
Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 405 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): apcupsd-3.12.4-5.f 100% |=========================| 405 kB 00:02
Running Transaction Test
warning: apcupsd-3.12.4-5.fc6: Header V3 DSA signature: NOKEY, key ID 1ac70ce6
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: apcupsd ######################### [1/1]
Installed: apcupsd.i386 0:3.12.4-5.fc6
Complete!', 'Yum not working', '', 'publish', 'open', 'open', '', 'yum-not-working', '', '', '2008-03-20 15:23:00', '2008-03-20 15:23:00', '', 0, 'http://www.andrewkrone.com/?p=107', 0, 'post', '', 0),
(108, 2, '2008-03-24 14:55:00', '2008-03-24 14:55:00', '
www.verizonwireless.com/getitnow/getpix.
To learn how you can record videos with your wireless phone visit www.verizonwireless.com/getitnow/getflix.
To play video messages sent to email, QuickTime® 6.5 or higher is required. Visit www.apple.com/quicktime/download to download the free player or upgrade your existing QuickTime® Player. Note: During the download
process when asked to choose an installation type (Minimum, Recommended or Custom), select Minimum for faster download.', '', '', 'publish', 'open', 'open', '', '108', '', '', '2008-03-24 14:55:00', '2008-03-24 14:55:00', '', 0, 'http://www.andrewkrone.com/?p=108', 0, 'post', '', 0),
(109, 2, '2008-03-25 16:39:00', '2008-03-25 16:39:00', '
www.verizonwireless.com/getitnow/getpix.
To learn how you can record videos with your wireless phone visit www.verizonwireless.com/getitnow/getflix.
To play video messages sent to email, QuickTime® 6.5 or higher is required. Visit www.apple.com/quicktime/download to download the free player or upgrade your existing QuickTime® Player. Note: During the download
process when asked to choose an installation type (Minimum, Recommended or Custom), select Minimum for faster download.', '', '', 'publish', 'open', 'open', '', '109', '', '', '2008-03-25 16:39:00', '2008-03-25 16:39:00', '', 0, 'http://www.andrewkrone.com/?p=109', 0, 'post', '', 0),
(110, 2, '2008-03-25 17:56:00', '2008-03-25 17:56:00', 'Removing duplicate lines on a file is easy. Although, not sure how to do it with vi or notepad++ or crimson editor.
Here\'s how to do it in Excel:
1). Open the text file in Excel
2). Create a new macro
3). Cut and paste the procedure below into the macro
4). Run the macro
5). Relish how easy things are with Google
Public Sub DeleteDuplicateRows()
\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'
\' DeleteDuplicateRows
\' This will delete duplicate records, based on the Active Column. That is,
\' if the same value is found more than once in the Active Column, all but
\' the first (lowest row number) will be deleted.
\'
\' To run the macro, select the entire column you wish to scan for
\' duplicates, and run this procedure.
\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'
Dim R As Long
Dim N As Long
Dim V As Variant
Dim Rng As Range
On Error GoTo EndMacro
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Set Rng = Application.Intersect(ActiveSheet.UsedRange, _
ActiveSheet.Columns(ActiveCell.Column))
Application.StatusBar = \"Processing Row: \" & Format(Rng.Row, \"#,##0\")
N = 0
For R = Rng.Rows.Count To 2 Step -1
If R Mod 500 = 0 Then
Application.StatusBar = \"Processing Row: \" & Format(R, \"#,##0\")
End If
V = Rng.Cells(R, 1).Value
\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'
\' Note that COUNTIF works oddly with a Variant that is equal to vbNullString.
\' Rather than pass in the variant, you need to pass in vbNullString explicitly.
\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'
If V = vbNullString Then
If Application.WorksheetFunction.CountIf(Rng.Columns(1), vbNullString) > 1 Then
Rng.Rows(R).EntireRow.Delete
N = N + 1
End If
Else
If Application.WorksheetFunction.CountIf(Rng.Columns(1), V) > 1 Then
Rng.Rows(R).EntireRow.Delete
N = N + 1
End If
End If
Next R
EndMacro:
Application.StatusBar = False
Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic
MsgBox \"Duplicate Rows Deleted: \" & CStr(N)
End Sub', 'Removing Duplicate Lines from a text or Excel file', '', 'publish', 'open', 'open', '', 'removing-duplicate-lines-from-a-text-or-excel-file', '', '', '2008-03-25 17:56:00', '2008-03-25 17:56:00', '', 0, 'http://www.andrewkrone.com/?p=110', 0, 'post', '', 0),
(111, 2, '2008-04-11 20:18:00', '2008-04-11 20:18:00', '
To learn how you can snap pictures and capture videos with your wireless phone visit www.verizonwireless.com/picture.
To play video messages sent to email, QuickTime® 6.5 or higher is required. Visit www.apple.com/quicktime/download to download the free player or upgrade your existing QuickTime® Player. Note: During the download process when asked to choose an installation type (Minimum, Recommended or Custom), select Minimum for faster download.', '', '', 'publish', 'open', 'open', '', '111', '', '', '2008-04-11 20:18:00', '2008-04-11 20:18:00', '', 0, 'http://www.andrewkrone.com/?p=111', 0, 'post', '', 0), (112, 2, '2008-04-16 15:36:00', '2008-04-16 15:36:00', '
This message was sent using the Picture and Video Messaging service from Verizon Wireless!To learn how you can snap pictures and capture videos with your wireless phone visit www.verizonwireless.com/picture.
To play video messages sent to email, QuickTime® 6.5 or higher is required. Visit www.apple.com/quicktime/download to download the free player or upgrade your existing QuickTime® Player. Note: During the download process when asked to choose an installation type (Minimum, Recommended or Custom), select Minimum for faster download.', '', '', 'publish', 'open', 'open', '', '112', '', '', '2008-04-16 15:36:00', '2008-04-16 15:36:00', '', 0, 'http://www.andrewkrone.com/?p=112', 0, 'post', '', 0), (113, 2, '2008-04-21 16:23:00', '2008-04-21 16:23:00', '
This message was sent using the Picture and Video Messaging service from Verizon Wireless!To learn how you can snap pictures and capture videos with your wireless phone visit www.verizonwireless.com/picture.
To play video messages sent to email, QuickTime® 6.5 or higher is required. Visit www.apple.com/quicktime/download to download the free player or upgrade your existing QuickTime® Player. Note: During the download process when asked to choose an installation type (Minimum, Recommended or Custom), select Minimum for faster download.', '', '', 'publish', 'open', 'open', '', '113', '', '', '2008-04-21 16:23:00', '2008-04-21 16:23:00', '', 0, 'http://www.andrewkrone.com/?p=113', 0, 'post', '', 0), (114, 2, '2008-04-23 15:50:00', '2008-04-23 15:50:00', '
This message was sent using the Picture and Video Messaging service from Verizon Wireless!To learn how you can snap pictures and capture videos with your wireless phone visit www.verizonwireless.com/picture.
To play video messages sent to email, QuickTime® 6.5 or higher is required. Visit www.apple.com/quicktime/download to download the free player or upgrade your existing QuickTime® Player. Note: During the download process when asked to choose an installation type (Minimum, Recommended or Custom), select Minimum for faster download.', '', '', 'publish', 'open', 'open', '', '114', '', '', '2008-04-23 15:50:00', '2008-04-23 15:50:00', '', 0, 'http://www.andrewkrone.com/?p=114', 0, 'post', '', 0),
(115, 2, '2008-05-13 18:28:00', '2008-05-13 18:28:00', 'Simple stuff, just no good resource out there:
1). Modify the line in /etc/syslog.conf from this:
*.info;mail.none;authpriv.none;cron.none /var/log/messages
To this
*.info;mail.none;authpriv.none;cron.none;local0.none /var/log/messages
2). Add the following two lines to the bottom of /etc/syslog.conf, the file “specialfilename” is the name of the new log:
# Firebox logs
local0.* /var/log/specialfilename
3). Modify /etc/syconfig/syslog so the”SYSLOGD_OPTIONS” look like this:
SYSLOGD_OPTIONS=\"-r -m 0\"
4). Restart the syslog server:
[root@yourserver etc]# /etc/init.d/syslog restart
Shutting down kernel logger: [ OK ]
Shutting down system logger: [ OK ]
Starting system logger: [ OK ]
Starting kernel logger: [ OK ]', 'Coinfiguring a Sylog Server on Linux', '', 'publish', 'open', 'open', '', 'coinfiguring-a-sylog-server-on-linux', '', '', '2008-05-13 18:28:00', '2008-05-13 18:28:00', '', 0, 'http://www.andrewkrone.com/?p=115', 0, 'post', '', 0),
(116, 2, '2008-06-25 16:35:00', '2008-06-25 16:35:00', 'Here are the instructions to create a dual disk system using backuppc. This approach creates a \"copy\" of the pool data without RAID. I have two external USB drives, both 500 Gig here. The advantage (I think) of this method is that if a mistake is made or a disk crashes no rebuilding is needed, just a copy. Also, the second disk can be removed for safe keeping, all we need is a replacement disk (no rebuilding)
1). Stop backuppc:
/etc/init.d/backuppc stop
2). Sync the current default location to your new mount point excluding \"pc\" (USB device = /data1):
rsync -avPH --exclude=pc/ --delete /var/lib/backuppc/ /data1/backuppc/
(This creates all the data for backuppc in /data1/backuppc, the \"H\" preserves hard links)
3). Move the old location to a new file, just in case:
mv /var/lib/backuppc /var/lib/backuppc_old
4). Change the /data1 mount point in /etc/fstab to mount /var/lib/backuppc, here\'s the line:
before: /dev/sdc /data1/backuppc ext3 defaults 0 0
after: /dev/sdc /var/lib/backuppc ext3 defaults 0 0
5). If there\'s a second disk, setup a crontab with an rsync:
rsync -aPH --exclude=pc/ --delete /var/lib/backuppc/ /data2/backuppc/ >/dev/null 2>&1
6). Reboot and verify the disk(s) are mounted correctlty
7). Start backuppc, /etc/init.d/backuppc start
8). After a few days if all is working remove /var/lib/backuppc_old
Note: Rather than creating a symbolic link from /var/lib/backuppc to /data1/backuppc I opted to create a static mount point in /etc/fstab. This is more straightforward. When someone runs \"df -k\" they\'ll see the giant mount point at /var/lib/backuppc and hopefully notice that it\'s a USB device.
Formatting USB: You may also have to format the USB drive with \"mkfs.ext3 /dev/sdc\". The device can be determined pretty easily with the Logical Volume Management Tool available in the GNOME GUI.
Further Note: Changing /etc/BackupPC/conf.pl and some of the files like \"/usr/lib/BackupPC/Lib.pm\" so the top directory is hard changed is NOT recommended. This is because someone else may update the backuppc package and the topDir will break.
-Andy', 'Backuppc: Moving the pool', '', 'publish', 'open', 'open', '', 'backuppc-moving-the-pool', '', '', '2008-06-25 16:35:00', '2008-06-25 16:35:00', '', 0, 'http://www.andrewkrone.com/?p=116', 0, 'post', '', 2),
(117, 2, '2008-07-08 19:47:00', '2008-07-08 19:47:00', 'Example:
[root@servername~ ]# while [ 1 ]
> do
> date;
> df –h |grep backup;
> sleep 600;
> done
This creates a loop that checks the disks mounted to the directories with the name “backup” and displays the date every ten minutes. This is useful to see the progress of a very large sync command on a ten minute basis. Obviously it can be changed for virtually any command.
Note: the “while [ 1 ]” basically means the while is always true, thus the “sleep 600” is required. Otherwise you would have an infinite loop just going crazy.
You can kill the output with ctrl-c
-Andy', 'Create a command prompt loop Linux', '', 'publish', 'open', 'open', '', 'create-a-command-prompt-loop-linux', '', '', '2008-07-08 19:47:00', '2008-07-08 19:47:00', '', 0, 'http://www.andrewkrone.com/?p=117', 0, 'post', '', 0),
(118, 2, '2008-09-30 18:42:00', '2008-09-30 18:42:00', 'The Big Picture:
bigpicture.typepad.com
Chris Martenson:
http://www.chrismartenson.com/
Jesse\'s Cafe Americain:
http://jessescrossroadscafe.blogspot.com/
Clusterfuck Nation:
http://jameshowardkunstler.typepad.com/', 'The Economy....', '', 'publish', 'open', 'open', '', 'the-economy', '', '', '2008-09-30 18:42:00', '2008-09-30 18:42:00', '', 0, 'http://www.andrewkrone.com/?p=118', 0, 'post', '', 0),
(119, 2, '2008-12-11 20:32:00', '2008-12-11 20:32:00', 'RSA is a ripoff, they\'re following in the footsteps of Microsoft and unfortunately many companies believe RSA is the only way to secure their network.
They\'re wrong, and here\'s why:
OpenVPN + Server Cert/Key + Pam Authentication Module = FREE two factor authentication.
First, let\'s define two factor authentication: It\'s nothing more than two requirements when you logon, tunnel or gain access to a network. For example you have a \"pincode\" or \"password\" that never changes. In addition you might have a key chain \"token\" that is constantly changing. Access requires both, and because the key chain token is always changing it becomes very difficult for the wrong person to gain access.
Little background on industry: The Citrix Access Gateway is probably the industry standard at providing a single factor authentication gateway for a small company. I\'m guessing most companies concerned with security have something very similar. The gateway or \"CAG\" sits behind the companies firewall and accepts authentication requests. That\'s the first factor, the second is generally a token like system requiring users to carry around a silly key chain. Why? If a user has a private certificate of authority AND a username/password access is still two factor.
What absolutely amazes me is that there are open source applications that can provide 2 factor authentication for FREE.
Here\'s what a working OpenVPN server config looks like using PAM:
proto udp
;proto tcp
port 1194
dev tap
tls-server
dh /etc/openvpn/easy-rsa/keys/dh1024.pem
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/server.crt
key /etc/openvpn/easy-rsa/keys/server.key
duplicate-cn
#Define the ip address for the tap0 virtual device
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist /etc/openvpn/ipp.txt
#route to be established on the server
route-up \"route delete -net 10.8.0.0/24\"
route-up \"route add -net 10.8.0.0/24 tap0\"
#Allow Clients to talk to one another
client-to-client
#Push the same ping to the server....
push \"ping 10\"
push \"ping-restart 60\"
push \"route 172.16.4.0 255.255.255.0\" #route to another subnet
push \"route 172.16.5.0 255.255.255.0\" #route to another
push \"route 172.16.51.0 255.255.255.0\" #route to one more
push \"route 172.16.8.0 255.255.255.0\" #route to and another
push \"route 172.16.81.0 255.255.255.0\" #route to some place
push \"route 172.16.70.0 255.255.255.0\" #route to northern US
push \"route 172.16.33.0 255.255.255.0\" #route to more north
push \"dhcp-option DOMAIN companyname.com\" #push the DNS domain suffix
comp-lzo
status-version 2
status /var/log/openvpn-status.log
verb 5
# Keep tunnel open with ping every 10 Seconds, restart ever 120 Seconds
keepalive 10 120
plugin /usr/share/openvpn/plugin/lib/openvpn-auth-pam.so login
client-cert-not-required
I\'m going to skip a whole bunch of steps to get this working (see openvpn.org) but if the server is running with the above configuration (with no errors) you\'ll have a two factor authentication: 1). Using the signed Certificate of Authority and 2). The username/password on the Linux box access by the openvpn-auth-pam.so module above.
Win XP/Vista/32bit/64bit Client Setup:
1). Install OpenVPN GUI v1.0.3
2). Load the ca.crt and client.opvn file.
Here\'s an example of the client.ovpn file:
client
dev tap
;proto tcp
proto udp
remote 1.2.3.4 1194 (1.2.3.4 should be the public ip of the server)
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
comp-lzo
verb 3
mute 20
auth-user-pass
Save yourself $10k or $20k, learn OpenVPN.
-Andy', 'Two Factor Authentication for Free', '', 'publish', 'open', 'open', '', 'two-factor-authentication-for-free', '', '', '2008-12-11 20:32:00', '2008-12-11 20:32:00', '', 0, 'http://www.andrewkrone.com/?p=119', 0, 'post', '', 3),
(120, 2, '2008-12-11 21:04:00', '2008-12-11 21:04:00', 'A few more great things about OpenVPN:
1). The whole setup below can be duplicated on a separate server in less than an hour should a server crash
2). The second server does not require additional licensing
3). The UDP protocol can easily be switched to TCP 443 to get through pesky firewalls
4). Vista 64-bit works with the latest OpenVPN GUI
5). Log Files easily show all access by username', 'OpenVPN', '', 'publish', 'open', 'open', '', 'openvpn', '', '', '2008-12-11 21:04:00', '2008-12-11 21:04:00', '', 0, 'http://www.andrewkrone.com/?p=120', 0, 'post', '', 0),
(121, 2, '2008-12-11 21:16:00', '2008-12-11 21:16:00', '
Source: http://online.wsj.com/article/SB108111980285073875.html
\r\nHow a Marine Lost His Command\r\nIn Race to Baghdad\r\nCol. Joe Dowdy\'s \'Tempo\' Displeased Superiors;\r\nBalance of Mission, Men General\'s Call Name: \'Chaos\'\r\nBy CHRISTOPHER COOPER\r\nStaff Reporter of THE WALL STREET JOURNAL\r\nApril 5, 2004; Page A1\r\nTwo weeks into the war in Iraq, Marine Col\r\n. Joe D. Dowdy concluded the crowning military maneuver of his life, attacking an elite band of Iraqi troops and then shepherding 6,000 men on an 18-hour, high-speed race toward Baghdad.\r\nBut no praise awaited the First Marine regimental commander as he pushed into the tent of his superior, Maj. Gen. James Mattis, on April 4, 2003. Instead, Col. Dowdy was stripped of his command, which effectively ended his 24-year Marine career. In a final blow, Col. Dowdy says, the general asked him to empty his sidearm and turn over the ammunition. \"He thought I was going to try to kill myself,\" the colonel says.\r\nAssuming a battlefield command is the pinnacle of a Marine\'s career. Being removed is near the nadir, exceeded only by a court martial. It\'s extremely rare for the modern U.S. military to relieve a top commander of duty, especially during combat. Col. Dowdy, 47 years old, was the only senior officer in any of the military services to be dismissed in Iraq. He says he would rather have taken an enemy bullet.\r\nCol. Dowdy\'s firing was even more unusual because he didn\'t commit any of the acts that normally precipitate a dismissal: failing to complete a mission, disobeying a direct order, breaking the rules of war. \"It was a decision based on operating tempo,\" says Lt. Eric Knapp, a spokesman for the First Marine Division. He wouldn\'t elaborate.\r\nThe colonel\'s removal sparked media coverage and intense speculation in the Marine Corps. The reasons for his firing weren\'t clear, mainly because the colonel and his superiors refused to talk about it. Now, interviews with Col. Dowdy and a score of officers and enlisted men show the colonel was doomed partly by an age-old wartime tension: Men versus mission -- in which he favored his men.\r\nGen. Mattis and Col. Dowdy personify all that is celebrated in Marine Corps culture. Gen. Mattis, 53, is a \"warrior monk,\" as some of his men put it, a lifelong bachelor consumed with the study and practice of battle tactics. Col. Dowdy is beloved for the attention he pays to his men, from the grunts on up.\r\nThe qualities of these two Marines eventually tore them apart. Gen. Mattis, a Marine for 33 years, saw speed as paramount in the Iraq war plan. Col. Dowdy thought sacrificing everything for speed imperiled the welfare of his men.\r\nThe dispute was stoked by widespread but mistaken assumptions about how the Iraqis would fight. The desire for speed stemmed from the Pentagon\'s expectation of a fierce, protracted battle in Baghdad, with far less resistance in other areas. But it turned out that Baghdad fell easily, while the countryside continued to seethe with resistance.\r\nToday, as U.S. forces tangle with an enemy they clearly underestimated, the military still is debating whether speeding to the Iraqi capital was the best way to proceed.\r\nGen. Mattis declined to be interviewed for this story. His chief of staff, Col. Joe Dunford, says a decision made during combat is impossible to explain now. \"It\'s just one of those things when you try to put the pieces back together, there\'s no way you can.\"\r\nOver a plate of chicken quesadillas near his home in Carlsbad, Calif., Col. Dowdy admits to making mistakes. But he doesn\'t believe any of them warranted his removal. He\'s proud that only one Marine died under his command. \"At least I don\'t have a butcher bill to pay,\" he says.\r\nDust caked the 900 trucks and tanks in Col. Dowdy\'s regiment when they emerged from the desert March 22, 2003. Two days into the war, the regiment was headed to Nasiriyah, a sprawl of slums and industrial compounds where Col. Dowdy\'s problems would begin.\r\nSince he was a boy in Little Rock, Ark., the colonel had dreamed of an assignment like this. Commander of the 6,000-man First Regiment for nearly a year before the war began, Col. Dowdy was deeply familiar with the plan for invading Iraq.\r\nWith his shaved head and powerful frame, Col. Dowdy looks like the archetypal Marine. His men praise him for treating them as equals, despite the Marines\' stratified organization. Departing from custom, Col. Dowdy, a married father of three, invited enlisted men as well as officers to the annual Christmas party at his home. When the Marines were camped in Kuwait in the run-up to the war, Col. Dowdy declined an air conditioner when it became clear that only officers would get them, recalls Gunnery Sgt. Robert Kane.\r\n\"As a colonel, he was entitled to certain privileges, but he was the type of man, if his Marines didn\'t have it, he didn\'t have it,\" says Sgt. Kane, who served under Col. Dowdy in Iraq and in East Timor in 1999.\r\nBy several accounts, Col. Dowdy was destined to win a general\'s star after the war in Iraq. \"I know people, supporters, peers who think Joe Dowdy is a water walker,\" says Anthony Zinni, a retired four-star Marine general. When Col. Dowdy served under him, \"he was the finest lieutenant I had,\" Gen. Zinni says.\r\nLike many in his regiment, Col. Dowdy lacked extensive battle experience. In 1983, he saw limited action in Beirut, where 241 Marines were killed in a suicide bombing. He served in Somalia in 1993 and 1994, where Marines were on the vanguard of what became a bloody humanitarian mission.\r\nGen. Mattis mapped the Marines\' broad plan for Iraq, which many defense analysts consider tactically brilliant. Two 6,000-man regiments of the First Marine Division were to drive toward Baghdad. Col. Dowdy\'s regiment was to head to the city of al Kut -- where an 8,000-man contingent of Saddam Hussein\'s best Republican Guard soldiers were dug in.\r\nIt was presumed the Iraqis had chemical weapons, so the plan was to avoid engaging them directly. Col. Dowdy\'s unit was to act as a decoy, diverting Mr. Hussein\'s soldiers and allowing the other U.S. regiments to rush in from the northwest through a gap in Iraqi defenses to get to Baghdad.\r\nCol. Dowdy\'s route would take him through the city of Nasiriyah. Another Marine unit, called Task Force Tarawa, was charged with keeping order there. Pentagon officials assumed the city would offer little resistance because it had long been oppressed by Mr. Hussein. That assumption turned out to be wrong.\r\nThe plan began to unravel in Nasiriyah. When Col. Dowdy and his men arrived outside the city, they found their passage blocked by a massive firefight. Word filtered back that Task Force Tarawa had suffered casualties, including 18 dead. Adding to the confusion was a U.S. Army supply unit, which had mistakenly stumbled into Nasiriyah. Several soldiers in that unit were dead. Others, including Pvt. Jessica Lynch, had been taken prisoner.\r\nOutside the city, Col. Dowdy and his staff debated what to do. Several hundred trucks in Col. Dowdy\'s train lacked armor, and squeezing through a fierce battle zone would be complicated, especially on Nasiriyah\'s narrow streets.\r\nA potential 150-mile bypass around Nasiriyah didn\'t seem feasible. Col. Dowdy wasn\'t sure he had enough fuel and didn\'t know what resistance he might face. The First Regiment was stuck.\r\nThe halt was anathema to Gen. Mattis, a devotee of a modern military doctrine known as \"maneuver warfare.\" Though Marines have practiced the technique for years, the Iraqi war was its first large-scale test. Instead of following rigid battle plans and attacking on well-defined fronts, this tactic calls for smaller forces to move quickly over combat zones, exploiting opportunities and sowing confusion among the enemy. The technique is summed up in Gen. Mattis\' radio call name: \"Chaos.\"\r\nGen. Mattis had fought in Iraq before, in the first Gulf War. After that, he commanded the Seventh Regiment of the First Division, known as one of the most battle-ready units in the Marines. \"I\'d follow him again,\" says Gunnery Sgt. Kane, who fought under Gen. Mattis in Afghanistan. \"His whole life is the Corps.\"\r\nSlight in stature and fierce in demeanor, Gen. Mattis burnished his reputation in Afghanistan, where his men captured an airstrip outside Kandahar. The daring raid cut to the heart of the Taliban resistance. \"The Marines have landed and we now own a piece of Afghanistan,\" Gen. Mattis told reporters there, just a few months after Sept. 11, 2001. The Pentagon scrambled to disavow the remark, but the Marines loved it.\r\nTo some in the military, the Iraq war promised the perfect test of maneuver warfare. At the time, the U.S. thought the fiercest fighting would begin near Baghdad and involve protracted urban fighting and chemical weapons. Speed was everything. The 1,000-mile journey to Baghdad, many thought, was just a warm-up.\r\nStopped outside Nasiriyah, Col. Dowdy says, he wasn\'t surprised when Gen. Mattis\'s top aide, Brig. Gen. John Kelly, showed up. The two stood talking on a bridge outside the city, watching the fighting. Gen. Kelly, 53, who has been a Marine for 33 years, had served mostly in academic and administrative posts. \"I thought I knew what war was,\" he says. \"It\'s difficult to imagine if you haven\'t been there.\"\r\nCol. Dowdy\'s regiment had been stuck in Nasiriyah for more than 24 hours. In retrospect, he says he should have been more decisive about moving through the city.\r\nOne of the cardinal rules of maneuver warfare stipulates that generals should allow commanders in the field, such as Col. Dowdy, to make tactical decisions. Gen. Kelly says he never ordered Col. Dowdy to move through Nasiriyah and never threatened to remove him from his post. But Lt. Col. Pete Owen, Col. Dowdy\'s chief of staff, has a different recollection. \"When we were stalled out in Nasiriyah, Gen. Kelly came up to me and said, \'If Col. Dowdy doesn\'t get this column moving, I\'m gonna pull him.\' \"\r\nLate that night, Col. Dowdy decided to move. He gave battalion commander Lt. Col. Lew Craparotta one hour to figure out how to form a cordon of soldiers that would shield the regiment as it passed through the city. Col. Craparotta wasn\'t pleased. \"I don\'t think next time I want to plan something like that on the hood of my Humvee in the pitch black,\" he says.\r\nThe regiment rumbled through Nasiriyah, past blackened hulks of U.S. vehicles and bodies of dead Marines waiting to be recovered by Task Force Tarawa. It was a sight, Col. Dowdy says, that would remain with him throughout the campaign.\r\nWhile the other regiments headed north on a four-lane highway, Col. Dowdy\'s group rolled up a two-lane country road that ran through dozens of villages, brimming with enemy forces. An official Marine account later called it a \"running gunfight through the Mesopotamian mud.\"\r\nThe Iraq regime flooded the road with thousands of fighters. Soon Col. Dowdy\'s men were engaged in battle. A raging sandstorm mixed with rain cut the Marines\' visibility to almost zero. The regiment suffered its first casualty when a rocket-propelled grenade blew through a Humvee door and severed a captain\'s hand, according to men on the scene.\r\nAs bullets flew and the captain was being hauled out by helicopter, Col. Dowdy, two days without sleep, slouched in his Humvee, with his staff around him. He fell asleep.\r\nIn wars, commanders fall asleep in meetings, on the radio, even during firefights. Col. Dowdy nodded off for about five minutes, his men say. But his timing couldn\'t have been worse. As he dozed, Gen. Mattis\'s top aide, Gen. Kelly, saw the colonel sleeping. Some of Col. Dowdy\'s men who were there say they believe that made a lasting impression.\r\nGen. Kelly declines to comment on Col. Dowdy\'s removal, saying such matters are \"sacred ground\" that only Gen. Mattis can address. In answer to general questions about the war, he says a battlefield commander\'s top priority is to \"put it all aside and focus on the mission. I\'ve seen a lot of people learn this the hard way.\"\r\nTwo days later, on March 27, 2003, the U.S. Army ordered an indefinite halt to the war to allow supply lines to catch up with American fighters.\r\nCol. Dowdy\'s regiment was camped about 50 miles southeast of Kut. He had his men capture a nearby airfield so supplies could be airlifted in. The next day, Gen. Mattis dropped by to check on his men -- and was infuriated by what he saw: A cratered runway and a Marine captain sitting on a bulldozer reading a paperback book. The captain said he hadn\'t been given an order to fix the runway.\r\nA few hours later, Col. Dowdy says, he got an earful from Gen. Mattis, who said he should have made sure the job of fixing the runway was done. Col. Dowdy now says he should have issued a written order. He considered stripping the bulldozer operator of his command, but thought better of it. \"If you fire everyone who makes a mistake, pretty soon you\'re standing there all by yourself,\" he says.\r\nDespite the misstep, Col. Dowdy was receiving daily praise from Gen. Mattis\'s staff, according to Col. John Toolan, who was then the general\'s chief of staff. Intelligence reports suggested that capturing the airport had drawn the attention of Mr. Hussein\'s Republican Guard soldiers. The Iraqis soon announced their presence by lobbing artillery shells at Col. Dowdy\'s regiment.\r\nThe decoy ploy was working. The other Marine regiments sped on the Iraqis\' untended western flank, toward Baghdad, according to plan.\r\nAt this point, it could be argued that Col. Dowdy had fulfilled his mission. The war plan called for him to retreat and take a bypass around Kut. Gen. Kelly acknowledges this was the original plan.\r\nBut after seeing villagers in the area waving and cheering at the Marines, Gen. Kelly believed an enemy collapse was imminent. \"There was so little resistance,\" he says. \"I figured they either deserted or were so far into their holes that they didn\'t want to fight.\" On April 1, 2003, the Fifth Regiment seized a bridge near Kut. At that point, Gen. Kelly says, Hussein\'s once-feared Baghdad Division became \"irrelevant.\"\r\nIn an unexpected move, Gen. Kelly ordered Col. Dowdy to head to Kut on a \"limited objective\" mission. Once Col. Dowdy got there, he was to decide if his regiment should go through the city, which could trim several hours of travel time.\r\nCol. Dowdy didn\'t think pushing through Kut would be wise. It would be a quicker route to Baghdad, but he thought it would be dangerous. His men had seen fortified foxholes, sandbagged buildings, mines along road shoulders and several thousand Iraqi fighters. With its narrow bridges and urban tangle, Kut looked even more perilous than Nasiriyah. Was saving a few hours worth the risk?\r\n\"In war, you have competing demands between men and mission,\" Col. Dowdy says. \"Which one wins out? There\'s no easy answer.\"\r\nHis superiors confirm that he wasn\'t ordered to take his regiment through the city. But an aggressive Marine could have chosen to plow through to get to Baghdad faster.\r\nThe generals were growing impatient. The U.S. Army had reached the outskirts of Baghdad. On the morning of April 3, 2003, the 15th day of the war, Gen. Kelly called Col. Dowdy to say he wanted the assault on Kut to begin immediately. Col. Dowdy said he was awaiting fresh ammunition and checking a report that the road to Kut was mined.\r\nGen. Kelly was furious, according to Col. Dowdy. \"Those aren\'t considerations, they\'re excuses,\" Col. Dowdy recalls the general saying.\r\nCol. Dowdy says the general continued: \"Why aren\'t you driving through al Kut right now? You know what? I\'m going to recommend that you be relieved of command. Maybe Gen. Mattis won\'t do it. Maybe he\'ll decide he can get along with a regiment that isn\'t worth a s-. But that\'s what I\'m going to recommend.\"\r\nGen. Kelly says he doesn\'t recall that specific conversation. He says he appreciated the potential risk to life that driving through Kut would pose. In a recent e-mail from Iraq, where he is serving a second tour, he wrote, \"The choice between mission and men ... is never an either-or, but always a balance.\"\r\nWithin an hour or so, Col. Dowdy and two of his battalions moved into Kut. They immediately met resistance, they say, with fighters popping out of doorways and alleys. \"My machine gun was going crazy,\" says Warrant Officer Thomas Parks, a gunner riding in the lead.\r\nThe battalions ground to a halt in front of an Iraqi tank, which Gunner Parks hit with a rocket, prompting return fire from the two-story mud huts lining the road. The door of Gunner Parks\' Humvee was blasted off its hinges, while lead filled the door of Col. Dowdy\'s vehicle, according to both men.\r\nMoments later, Gunner Parks glanced back and saw Col. Dowdy sprinting toward a family of Iraqi civilians. The colonel swept up two children and shoved the family into a bomb crater for cover, Gunner Parks says. An Iraqi fighter moving up an alley aimed a machine gun at Col. Dowdy. Gunner Parks shot him in the head. \"It took me three tries,\" he says.\r\nThe decision on whether to push through Kut was ultimately up to Col. Dowdy. But in the hours up to and during the fight, he and his staff say they received conflicting guidance. On the field telephone, Gen. Kelly was telling him to push through Kut. But on the radio, division command was urging withdrawal. \"There was a lot of confusion,\" Col. Dowdy says. \"Go. Don\'t go.\" Gen. Kelly agrees there was discussion about what the regiment should do.\r\nSo Col. Dowdy made a crucial decision: He decided not to go through the city. Getting to Baghdad early wasn\'t worth the risk, he says.\r\n\"At that point, maybe you\'re damned if you do and damned if you don\'t,\" says Sgt. Maj. Gregory Leal, the top enlisted man in Col. Dowdy\'s regiment. \"There\'s no book out there that says, \'This is how you liberate and occupy a country.\' \"\r\nAround sunset, the First Regiment started moving to rendezvous with the rest of the division via a 170-mile bypass around Kut. Col. Dowdy\'s men had collected 30 prisoners and, the colonel says, \"I felt like taking them up to division and saying, \'Look, g-ddamn it, we hit resistance in Kut, and here\'s your proof.\' \"\r\nHeadlights on and ducking intermittent fire from Iraqi peasants, the regiment covered the miles in about half the 36 hours it was supposed to have taken. On April 4, 2003, the regiment rolled into Numaniyah, where the Marines had planned to meet. The regiment had completed its mission with ample time to join the assault on Baghdad.\r\nBut Col. Dowdy\'s career was dead.\r\nA helicopter awaited when Col. Dowdy arrived in Numaniyah. Col. Dowdy and Sgt. Maj. Leal climbed aboard. Gen. Mattis had asked to see them. They were flown to the general\'s camp, about 50 miles away.\r\nWhen they arrived, Sgt. Maj. Leal says Gen. Mattis took him aside. \"How\'s your boss doing?\" the sergeant-major recalls him saying. \"I said, \'He\'s doing fine, sir.\' \" Then, according to Sgt. Maj. Leal, the general snapped: \"You\'re not engaged enough. You\'ve got four battalions and you\'re not pressing the attack.\' \"\r\n\"I told the general not to fire him,\" Sgt. Maj. Leal recalls. \"I said, \'Tell me what we need to do and we\'ll do it.\' \"\r\nMen under Gen. Mattis\'s command say he makes decisions quickly and never looks back. Sgt. Maj. Leal says he believes Gen. Mattis had already made up his mind.\r\nArtillery shells screamed overhead and the tanks and trucks of the Fifth Regiment rumbled past as Col. Dowdy made his way to Gen. Mattis\'s tent. Inside, the colonel sat facing Gens. Mattis and Kelly as an aide served hot tea. The colonel says he knew in his gut that he was about to be fired. \"It\'s like I\'m someplace I\'ve never been before,\" he recalls. \"I\'m failing miserably and I don\'t know why.\"\r\nHe says Gen. Mattis began with a sympathetic tone: \"We\'re going to get you some rest.\" Gen. Mattis brought up the bulldozer incident. Then, according to Col. Dowdy, the general said Col. Dowdy worried too much about enemy resistance and noted his lack of battle experience.\r\nCol. Dowdy says he replied: \"I\'ve been fighting my way up this m-f-ing road for the past two weeks.\" He recalls pleading with Gen. Mattis to reconsider. \"Think of my family, my unit,\" he recalls saying.\r\nIt was not to be. When Gen. Mattis requested his ammunition, Col. Dowdy assured him that he still considered himself a Marine. The general relented. Soon Col. Dowdy got on a helicopter to Kuwait. He called his wife, Priscilla. She\'d already seen the news on CNN.\r\nWord of his dismissal quickly filtered back to his men. Marines who were there say there was fleeting talk of a mutiny. \"I wanted to go with him,\" says Gunnery Sgt. Kane. \"A lot of guys felt that way. If Col. Dowdy said, \'Get your gear, you\'re coming with me,\' I would\'ve gone, even if it meant the end of my career.\"\r\nIn ensuing days, media outlets and Marine Internet chat rooms speculated about the colonel\'s defrocking. A day or so after his dismissal, Col. Dowdy wrote a letter that was posted on a Web site catering to families of the First Marine Division.\r\n\"As all of you are aware ... I am no longer a member of the Regiment,\" the letter said. \"Rest assured, no one, except me is responsible for the reassignment. Priscilla and I will remain loyal to the Marine Corps and to our Division and its very capable leaders.\" Col. Toolan, Gen. Mattis\'s chief of staff, took over the command. The regiment went on to Baghdad, setting up in a slum once known as Saddam City.\r\nA few weeks later, Col. Dowdy ran into Warrant Officer Parks, who was heading back to the U.S. like most of the First Division. The colonel arranged for his subordinate to get civilian clothes so he could take a commercial airline and meet his wife in New York. \"He called down to command for me and said, \'I got a hero coming, take care of him,\' \" Gunner Parks says. \"Then he got a little choked up, I got a little choked up and I got on a helicopter and left.\"\r\nCol. Dowdy says he took no joy in his next assignment, as head of personnel at the Marine Air Station in Miramar, Calif. In June, the First Division gave him a performance evaluation. It faulted him for \"being fatigued beyond normal\" and \"not employing the regiment to its full combat potential,\" he says, quoting from the document. It also said he was \"overly concerned about the welfare\" of his Marines, according to Col. Dowdy. By policy, the Marines don\'t comment on performance evaluations.\r\nLast November, for the first time in 25 years, Col. Dowdy and his wife skipped the Marine Corps Ball. The First Division returned to Iraq this spring. Col. Dowdy received permission to retire early, and left the Marines last month. \"I think I\'m a guy they probably didn\'t know what to do with,\" he says.\r\nThe issue of speed in Iraq remains in debate. Last fall, the Army War College, a Pentagon-financed school where officers analyze tactics, released a study saying there was little evidence that speed affected the outcome of the war. The stiff resistance outside Baghdad suggests U.S. forces may have done better by moving at a more measured pace, entering more cities, rooting out fighters and leaving more troops in the provinces to enforce order, the report said.\r\nHowever, in another study yet to be finalized, the military\'s Joint Center for Lessons Learned says speed was integral to U.S. military success in Iraq. In a speech in February, Adm. E.P. Giambastiani, commander of the Joint Forces, said speed \"reduces decision and execution cycles, creates opportunities, denies an enemy options and speeds his collapse.\"\r\nRetired Gen. Zinni says that, for Col. Dowdy, speed was academic. \"The boss is the boss,\" he says. \"If Gen. Mattis feels you need to move faster, then you move faster.\" Still, he says Col. Dowdy\'s firing could haunt Gen. Mattis too. \"This is not going to add to Jim Mattis\'s luster.\"\r\nSgt. Leal, now stationed in Texas, often tells Col. Dowdy that his reputation will be cleared one day. \"I think he\'ll always be known as the guy who chose men over mission,\" Sgt. Leal says. \"If that\'s how he\'s remembered, it\'s OK.\"\r\nWrite to Christopher Cooper at christopher.cooper@wsj.com
', 'WSJ Iraq article', '', 'publish', 'open', 'closed', '', 'wsj-iraq-article', '', '', '2012-12-06 17:17:02', '2012-12-06 17:17:02', '', 0, 'http://www.andrewkrone.com/?p=182', 0, 'post', '', 0), (180, 2, '2012-11-16 22:53:21', '2012-11-16 22:53:21', 'So, someone might ask, \"How do you extract 10 characters from a pdf on a particular line in a pdf file?\". This might be a common task performed on a report generated by a database where the output is pdf.\r\n\r\nEASY!!\r\n\r\nFirst, create a text file (temp.txt) using \"texttopdf\". This will provide a consistent and easy to manipulate format for the data from the pdf. Syntax looks like this:\r\n\r\ncommand> texttopdf filename.pdf temp.txt\r\n\r\nSecond, use \"awk\" to grab characters 10-15 (or whatever your choose) and pass them through a second command that grabs the correct line item.\r\n\r\nHere is an example to create a file called \"FILE\" that grabs 10 character from the 2nd line of the file 44 characters in:\r\n\r\nawk \'{print substr($0,44,10)}\' temp.txt | awk \'NR==2\' > FILE\r\n\r\nsimple,\r\n\r\nAndy\r\n\r\nawk \'{print substr($0,44,10)}\' temp.txt | awk \'NR==2\' > FILE', 'Using \"awk\" and \"texttopdf\" ', '', 'inherit', 'open', 'closed', '', '174-revision-6', '', '', '2012-11-16 22:53:21', '2012-11-16 22:53:21', '', 174, 'http://www.andrewkrone.com/?p=180', 0, 'revision', '', 0); INSERT INTO `wp_m3twcb_posts` (`ID`, `post_author`, `post_date`, `post_date_gmt`, `post_content`, `post_title`, `post_excerpt`, `post_status`, `comment_status`, `ping_status`, `post_password`, `post_name`, `to_ping`, `pinged`, `post_modified`, `post_modified_gmt`, `post_content_filtered`, `post_parent`, `guid`, `menu_order`, `post_type`, `post_mime_type`, `comment_count`) VALUES (183, 2, '2012-12-06 17:16:00', '2012-12-06 17:16:00', 'This should be public:\nSource: http://online.wsj.com/article/SB108111980285073875.html
\n\nHow a Marine Lost His Command\nIn Race to Baghdad\nCol. Joe Dowdy\'s \'Tempo\' Displeased Superiors;\nBalance of Mission, Men General\'s Call Name: \'Chaos\'\nBy CHRISTOPHER COOPER\nStaff Reporter of THE WALL STREET JOURNAL\nApril 5, 2004; Page A1\nTwo weeks into the war in Iraq, Marine Col
\n\nSource: http://online.wsj.com/article/SB108111980285073875.html
\r\nHow a Marine Lost His Command\r\nIn Race to Baghdad\r\nCol. Joe Dowdy\'s \'Tempo\' Displeased Superiors;\r\nBalance of Mission, Men General\'s Call Name: \'Chaos\'\r\nBy CHRISTOPHER COOPER\r\nStaff Reporter of THE WALL STREET JOURNAL\r\nApril 5, 2004; Page A1\r\nTwo weeks into the war in Iraq, Marine Col\r\n. Joe D. Dowdy concluded the crowning military maneuver of his life, attacking an elite band of Iraqi troops and then shepherding 6,000 men on an 18-hour, high-speed race toward Baghdad.\r\nBut no praise awaited the First Marine regimental commander as he pushed into the tent of his superior, Maj. Gen. James Mattis, on April 4, 2003. Instead, Col. Dowdy was stripped of his command, which effectively ended his 24-year Marine career. In a final blow, Col. Dowdy says, the general asked him to empty his sidearm and turn over the ammunition. \"He thought I was going to try to kill myself,\" the colonel says.\r\nAssuming a battlefield command is the pinnacle of a Marine\'s career. Being removed is near the nadir, exceeded only by a court martial. It\'s extremely rare for the modern U.S. military to relieve a top commander of duty, especially during combat. Col. Dowdy, 47 years old, was the only senior officer in any of the military services to be dismissed in Iraq. He says he would rather have taken an enemy bullet.\r\nCol. Dowdy\'s firing was even more unusual because he didn\'t commit any of the acts that normally precipitate a dismissal: failing to complete a mission, disobeying a direct order, breaking the rules of war. \"It was a decision based on operating tempo,\" says Lt. Eric Knapp, a spokesman for the First Marine Division. He wouldn\'t elaborate.\r\nThe colonel\'s removal sparked media coverage and intense speculation in the Marine Corps. The reasons for his firing weren\'t clear, mainly because the colonel and his superiors refused to talk about it. Now, interviews with Col. Dowdy and a score of officers and enlisted men show the colonel was doomed partly by an age-old wartime tension: Men versus mission -- in which he favored his men.\r\nGen. Mattis and Col. Dowdy personify all that is celebrated in Marine Corps culture. Gen. Mattis, 53, is a \"warrior monk,\" as some of his men put it, a lifelong bachelor consumed with the study and practice of battle tactics. Col. Dowdy is beloved for the attention he pays to his men, from the grunts on up.\r\nThe qualities of these two Marines eventually tore them apart. Gen. Mattis, a Marine for 33 years, saw speed as paramount in the Iraq war plan. Col. Dowdy thought sacrificing everything for speed imperiled the welfare of his men.\r\nThe dispute was stoked by widespread but mistaken assumptions about how the Iraqis would fight. The desire for speed stemmed from the Pentagon\'s expectation of a fierce, protracted battle in Baghdad, with far less resistance in other areas. But it turned out that Baghdad fell easily, while the countryside continued to seethe with resistance.\r\nToday, as U.S. forces tangle with an enemy they clearly underestimated, the military still is debating whether speeding to the Iraqi capital was the best way to proceed.\r\nGen. Mattis declined to be interviewed for this story. His chief of staff, Col. Joe Dunford, says a decision made during combat is impossible to explain now. \"It\'s just one of those things when you try to put the pieces back together, there\'s no way you can.\"\r\nOver a plate of chicken quesadillas near his home in Carlsbad, Calif., Col. Dowdy admits to making mistakes. But he doesn\'t believe any of them warranted his removal. He\'s proud that only one Marine died under his command. \"At least I don\'t have a butcher bill to pay,\" he says.\r\nDust caked the 900 trucks and tanks in Col. Dowdy\'s regiment when they emerged from the desert March 22, 2003. Two days into the war, the regiment was headed to Nasiriyah, a sprawl of slums and industrial compounds where Col. Dowdy\'s problems would begin.\r\nSince he was a boy in Little Rock, Ark., the colonel had dreamed of an assignment like this. Commander of the 6,000-man First Regiment for nearly a year before the war began, Col. Dowdy was deeply familiar with the plan for invading Iraq.\r\nWith his shaved head and powerful frame, Col. Dowdy looks like the archetypal Marine. His men praise him for treating them as equals, despite the Marines\' stratified organization. Departing from custom, Col. Dowdy, a married father of three, invited enlisted men as well as officers to the annual Christmas party at his home. When the Marines were camped in Kuwait in the run-up to the war, Col. Dowdy declined an air conditioner when it became clear that only officers would get them, recalls Gunnery Sgt. Robert Kane.\r\n\"As a colonel, he was entitled to certain privileges, but he was the type of man, if his Marines didn\'t have it, he didn\'t have it,\" says Sgt. Kane, who served under Col. Dowdy in Iraq and in East Timor in 1999.\r\nBy several accounts, Col. Dowdy was destined to win a general\'s star after the war in Iraq. \"I know people, supporters, peers who think Joe Dowdy is a water walker,\" says Anthony Zinni, a retired four-star Marine general. When Col. Dowdy served under him, \"he was the finest lieutenant I had,\" Gen. Zinni says.\r\nLike many in his regiment, Col. Dowdy lacked extensive battle experience. In 1983, he saw limited action in Beirut, where 241 Marines were killed in a suicide bombing. He served in Somalia in 1993 and 1994, where Marines were on the vanguard of what became a bloody humanitarian mission.\r\nGen. Mattis mapped the Marines\' broad plan for Iraq, which many defense analysts consider tactically brilliant. Two 6,000-man regiments of the First Marine Division were to drive toward Baghdad. Col. Dowdy\'s regiment was to head to the city of al Kut -- where an 8,000-man contingent of Saddam Hussein\'s best Republican Guard soldiers were dug in.\r\nIt was presumed the Iraqis had chemical weapons, so the plan was to avoid engaging them directly. Col. Dowdy\'s unit was to act as a decoy, diverting Mr. Hussein\'s soldiers and allowing the other U.S. regiments to rush in from the northwest through a gap in Iraqi defenses to get to Baghdad.\r\nCol. Dowdy\'s route would take him through the city of Nasiriyah. Another Marine unit, called Task Force Tarawa, was charged with keeping order there. Pentagon officials assumed the city would offer little resistance because it had long been oppressed by Mr. Hussein. That assumption turned out to be wrong.\r\nThe plan began to unravel in Nasiriyah. When Col. Dowdy and his men arrived outside the city, they found their passage blocked by a massive firefight. Word filtered back that Task Force Tarawa had suffered casualties, including 18 dead. Adding to the confusion was a U.S. Army supply unit, which had mistakenly stumbled into Nasiriyah. Several soldiers in that unit were dead. Others, including Pvt. Jessica Lynch, had been taken prisoner.\r\nOutside the city, Col. Dowdy and his staff debated what to do. Several hundred trucks in Col. Dowdy\'s train lacked armor, and squeezing through a fierce battle zone would be complicated, especially on Nasiriyah\'s narrow streets.\r\nA potential 150-mile bypass around Nasiriyah didn\'t seem feasible. Col. Dowdy wasn\'t sure he had enough fuel and didn\'t know what resistance he might face. The First Regiment was stuck.\r\nThe halt was anathema to Gen. Mattis, a devotee of a modern military doctrine known as \"maneuver warfare.\" Though Marines have practiced the technique for years, the Iraqi war was its first large-scale test. Instead of following rigid battle plans and attacking on well-defined fronts, this tactic calls for smaller forces to move quickly over combat zones, exploiting opportunities and sowing confusion among the enemy. The technique is summed up in Gen. Mattis\' radio call name: \"Chaos.\"\r\nGen. Mattis had fought in Iraq before, in the first Gulf War. After that, he commanded the Seventh Regiment of the First Division, known as one of the most battle-ready units in the Marines. \"I\'d follow him again,\" says Gunnery Sgt. Kane, who fought under Gen. Mattis in Afghanistan. \"His whole life is the Corps.\"\r\nSlight in stature and fierce in demeanor, Gen. Mattis burnished his reputation in Afghanistan, where his men captured an airstrip outside Kandahar. The daring raid cut to the heart of the Taliban resistance. \"The Marines have landed and we now own a piece of Afghanistan,\" Gen. Mattis told reporters there, just a few months after Sept. 11, 2001. The Pentagon scrambled to disavow the remark, but the Marines loved it.\r\nTo some in the military, the Iraq war promised the perfect test of maneuver warfare. At the time, the U.S. thought the fiercest fighting would begin near Baghdad and involve protracted urban fighting and chemical weapons. Speed was everything. The 1,000-mile journey to Baghdad, many thought, was just a warm-up.\r\nStopped outside Nasiriyah, Col. Dowdy says, he wasn\'t surprised when Gen. Mattis\'s top aide, Brig. Gen. John Kelly, showed up. The two stood talking on a bridge outside the city, watching the fighting. Gen. Kelly, 53, who has been a Marine for 33 years, had served mostly in academic and administrative posts. \"I thought I knew what war was,\" he says. \"It\'s difficult to imagine if you haven\'t been there.\"\r\nCol. Dowdy\'s regiment had been stuck in Nasiriyah for more than 24 hours. In retrospect, he says he should have been more decisive about moving through the city.\r\nOne of the cardinal rules of maneuver warfare stipulates that generals should allow commanders in the field, such as Col. Dowdy, to make tactical decisions. Gen. Kelly says he never ordered Col. Dowdy to move through Nasiriyah and never threatened to remove him from his post. But Lt. Col. Pete Owen, Col. Dowdy\'s chief of staff, has a different recollection. \"When we were stalled out in Nasiriyah, Gen. Kelly came up to me and said, \'If Col. Dowdy doesn\'t get this column moving, I\'m gonna pull him.\' \"\r\nLate that night, Col. Dowdy decided to move. He gave battalion commander Lt. Col. Lew Craparotta one hour to figure out how to form a cordon of soldiers that would shield the regiment as it passed through the city. Col. Craparotta wasn\'t pleased. \"I don\'t think next time I want to plan something like that on the hood of my Humvee in the pitch black,\" he says.\r\nThe regiment rumbled through Nasiriyah, past blackened hulks of U.S. vehicles and bodies of dead Marines waiting to be recovered by Task Force Tarawa. It was a sight, Col. Dowdy says, that would remain with him throughout the campaign.\r\nWhile the other regiments headed north on a four-lane highway, Col. Dowdy\'s group rolled up a two-lane country road that ran through dozens of villages, brimming with enemy forces. An official Marine account later called it a \"running gunfight through the Mesopotamian mud.\"\r\nThe Iraq regime flooded the road with thousands of fighters. Soon Col. Dowdy\'s men were engaged in battle. A raging sandstorm mixed with rain cut the Marines\' visibility to almost zero. The regiment suffered its first casualty when a rocket-propelled grenade blew through a Humvee door and severed a captain\'s hand, according to men on the scene.\r\nAs bullets flew and the captain was being hauled out by helicopter, Col. Dowdy, two days without sleep, slouched in his Humvee, with his staff around him. He fell asleep.\r\nIn wars, commanders fall asleep in meetings, on the radio, even during firefights. Col. Dowdy nodded off for about five minutes, his men say. But his timing couldn\'t have been worse. As he dozed, Gen. Mattis\'s top aide, Gen. Kelly, saw the colonel sleeping. Some of Col. Dowdy\'s men who were there say they believe that made a lasting impression.\r\nGen. Kelly declines to comment on Col. Dowdy\'s removal, saying such matters are \"sacred ground\" that only Gen. Mattis can address. In answer to general questions about the war, he says a battlefield commander\'s top priority is to \"put it all aside and focus on the mission. I\'ve seen a lot of people learn this the hard way.\"\r\nTwo days later, on March 27, 2003, the U.S. Army ordered an indefinite halt to the war to allow supply lines to catch up with American fighters.\r\nCol. Dowdy\'s regiment was camped about 50 miles southeast of Kut. He had his men capture a nearby airfield so supplies could be airlifted in. The next day, Gen. Mattis dropped by to check on his men -- and was infuriated by what he saw: A cratered runway and a Marine captain sitting on a bulldozer reading a paperback book. The captain said he hadn\'t been given an order to fix the runway.\r\nA few hours later, Col. Dowdy says, he got an earful from Gen. Mattis, who said he should have made sure the job of fixing the runway was done. Col. Dowdy now says he should have issued a written order. He considered stripping the bulldozer operator of his command, but thought better of it. \"If you fire everyone who makes a mistake, pretty soon you\'re standing there all by yourself,\" he says.\r\nDespite the misstep, Col. Dowdy was receiving daily praise from Gen. Mattis\'s staff, according to Col. John Toolan, who was then the general\'s chief of staff. Intelligence reports suggested that capturing the airport had drawn the attention of Mr. Hussein\'s Republican Guard soldiers. The Iraqis soon announced their presence by lobbing artillery shells at Col. Dowdy\'s regiment.\r\nThe decoy ploy was working. The other Marine regiments sped on the Iraqis\' untended western flank, toward Baghdad, according to plan.\r\nAt this point, it could be argued that Col. Dowdy had fulfilled his mission. The war plan called for him to retreat and take a bypass around Kut. Gen. Kelly acknowledges this was the original plan.\r\nBut after seeing villagers in the area waving and cheering at the Marines, Gen. Kelly believed an enemy collapse was imminent. \"There was so little resistance,\" he says. \"I figured they either deserted or were so far into their holes that they didn\'t want to fight.\" On April 1, 2003, the Fifth Regiment seized a bridge near Kut. At that point, Gen. Kelly says, Hussein\'s once-feared Baghdad Division became \"irrelevant.\"\r\nIn an unexpected move, Gen. Kelly ordered Col. Dowdy to head to Kut on a \"limited objective\" mission. Once Col. Dowdy got there, he was to decide if his regiment should go through the city, which could trim several hours of travel time.\r\nCol. Dowdy didn\'t think pushing through Kut would be wise. It would be a quicker route to Baghdad, but he thought it would be dangerous. His men had seen fortified foxholes, sandbagged buildings, mines along road shoulders and several thousand Iraqi fighters. With its narrow bridges and urban tangle, Kut looked even more perilous than Nasiriyah. Was saving a few hours worth the risk?\r\n\"In war, you have competing demands between men and mission,\" Col. Dowdy says. \"Which one wins out? There\'s no easy answer.\"\r\nHis superiors confirm that he wasn\'t ordered to take his regiment through the city. But an aggressive Marine could have chosen to plow through to get to Baghdad faster.\r\nThe generals were growing impatient. The U.S. Army had reached the outskirts of Baghdad. On the morning of April 3, 2003, the 15th day of the war, Gen. Kelly called Col. Dowdy to say he wanted the assault on Kut to begin immediately. Col. Dowdy said he was awaiting fresh ammunition and checking a report that the road to Kut was mined.\r\nGen. Kelly was furious, according to Col. Dowdy. \"Those aren\'t considerations, they\'re excuses,\" Col. Dowdy recalls the general saying.\r\nCol. Dowdy says the general continued: \"Why aren\'t you driving through al Kut right now? You know what? I\'m going to recommend that you be relieved of command. Maybe Gen. Mattis won\'t do it. Maybe he\'ll decide he can get along with a regiment that isn\'t worth a s-. But that\'s what I\'m going to recommend.\"\r\nGen. Kelly says he doesn\'t recall that specific conversation. He says he appreciated the potential risk to life that driving through Kut would pose. In a recent e-mail from Iraq, where he is serving a second tour, he wrote, \"The choice between mission and men ... is never an either-or, but always a balance.\"\r\nWithin an hour or so, Col. Dowdy and two of his battalions moved into Kut. They immediately met resistance, they say, with fighters popping out of doorways and alleys. \"My machine gun was going crazy,\" says Warrant Officer Thomas Parks, a gunner riding in the lead.\r\nThe battalions ground to a halt in front of an Iraqi tank, which Gunner Parks hit with a rocket, prompting return fire from the two-story mud huts lining the road. The door of Gunner Parks\' Humvee was blasted off its hinges, while lead filled the door of Col. Dowdy\'s vehicle, according to both men.\r\nMoments later, Gunner Parks glanced back and saw Col. Dowdy sprinting toward a family of Iraqi civilians. The colonel swept up two children and shoved the family into a bomb crater for cover, Gunner Parks says. An Iraqi fighter moving up an alley aimed a machine gun at Col. Dowdy. Gunner Parks shot him in the head. \"It took me three tries,\" he says.\r\nThe decision on whether to push through Kut was ultimately up to Col. Dowdy. But in the hours up to and during the fight, he and his staff say they received conflicting guidance. On the field telephone, Gen. Kelly was telling him to push through Kut. But on the radio, division command was urging withdrawal. \"There was a lot of confusion,\" Col. Dowdy says. \"Go. Don\'t go.\" Gen. Kelly agrees there was discussion about what the regiment should do.\r\nSo Col. Dowdy made a crucial decision: He decided not to go through the city. Getting to Baghdad early wasn\'t worth the risk, he says.\r\n\"At that point, maybe you\'re damned if you do and damned if you don\'t,\" says Sgt. Maj. Gregory Leal, the top enlisted man in Col. Dowdy\'s regiment. \"There\'s no book out there that says, \'This is how you liberate and occupy a country.\' \"\r\nAround sunset, the First Regiment started moving to rendezvous with the rest of the division via a 170-mile bypass around Kut. Col. Dowdy\'s men had collected 30 prisoners and, the colonel says, \"I felt like taking them up to division and saying, \'Look, g-ddamn it, we hit resistance in Kut, and here\'s your proof.\' \"\r\nHeadlights on and ducking intermittent fire from Iraqi peasants, the regiment covered the miles in about half the 36 hours it was supposed to have taken. On April 4, 2003, the regiment rolled into Numaniyah, where the Marines had planned to meet. The regiment had completed its mission with ample time to join the assault on Baghdad.\r\nBut Col. Dowdy\'s career was dead.\r\nA helicopter awaited when Col. Dowdy arrived in Numaniyah. Col. Dowdy and Sgt. Maj. Leal climbed aboard. Gen. Mattis had asked to see them. They were flown to the general\'s camp, about 50 miles away.\r\nWhen they arrived, Sgt. Maj. Leal says Gen. Mattis took him aside. \"How\'s your boss doing?\" the sergeant-major recalls him saying. \"I said, \'He\'s doing fine, sir.\' \" Then, according to Sgt. Maj. Leal, the general snapped: \"You\'re not engaged enough. You\'ve got four battalions and you\'re not pressing the attack.\' \"\r\n\"I told the general not to fire him,\" Sgt. Maj. Leal recalls. \"I said, \'Tell me what we need to do and we\'ll do it.\' \"\r\nMen under Gen. Mattis\'s command say he makes decisions quickly and never looks back. Sgt. Maj. Leal says he believes Gen. Mattis had already made up his mind.\r\nArtillery shells screamed overhead and the tanks and trucks of the Fifth Regiment rumbled past as Col. Dowdy made his way to Gen. Mattis\'s tent. Inside, the colonel sat facing Gens. Mattis and Kelly as an aide served hot tea. The colonel says he knew in his gut that he was about to be fired. \"It\'s like I\'m someplace I\'ve never been before,\" he recalls. \"I\'m failing miserably and I don\'t know why.\"\r\nHe says Gen. Mattis began with a sympathetic tone: \"We\'re going to get you some rest.\" Gen. Mattis brought up the bulldozer incident. Then, according to Col. Dowdy, the general said Col. Dowdy worried too much about enemy resistance and noted his lack of battle experience.\r\nCol. Dowdy says he replied: \"I\'ve been fighting my way up this m-f-ing road for the past two weeks.\" He recalls pleading with Gen. Mattis to reconsider. \"Think of my family, my unit,\" he recalls saying.\r\nIt was not to be. When Gen. Mattis requested his ammunition, Col. Dowdy assured him that he still considered himself a Marine. The general relented. Soon Col. Dowdy got on a helicopter to Kuwait. He called his wife, Priscilla. She\'d already seen the news on CNN.\r\nWord of his dismissal quickly filtered back to his men. Marines who were there say there was fleeting talk of a mutiny. \"I wanted to go with him,\" says Gunnery Sgt. Kane. \"A lot of guys felt that way. If Col. Dowdy said, \'Get your gear, you\'re coming with me,\' I would\'ve gone, even if it meant the end of my career.\"\r\nIn ensuing days, media outlets and Marine Internet chat rooms speculated about the colonel\'s defrocking. A day or so after his dismissal, Col. Dowdy wrote a letter that was posted on a Web site catering to families of the First Marine Division.\r\n\"As all of you are aware ... I am no longer a member of the Regiment,\" the letter said. \"Rest assured, no one, except me is responsible for the reassignment. Priscilla and I will remain loyal to the Marine Corps and to our Division and its very capable leaders.\" Col. Toolan, Gen. Mattis\'s chief of staff, took over the command. The regiment went on to Baghdad, setting up in a slum once known as Saddam City.\r\nA few weeks later, Col. Dowdy ran into Warrant Officer Parks, who was heading back to the U.S. like most of the First Division. The colonel arranged for his subordinate to get civilian clothes so he could take a commercial airline and meet his wife in New York. \"He called down to command for me and said, \'I got a hero coming, take care of him,\' \" Gunner Parks says. \"Then he got a little choked up, I got a little choked up and I got on a helicopter and left.\"\r\nCol. Dowdy says he took no joy in his next assignment, as head of personnel at the Marine Air Station in Miramar, Calif. In June, the First Division gave him a performance evaluation. It faulted him for \"being fatigued beyond normal\" and \"not employing the regiment to its full combat potential,\" he says, quoting from the document. It also said he was \"overly concerned about the welfare\" of his Marines, according to Col. Dowdy. By policy, the Marines don\'t comment on performance evaluations.\r\nLast November, for the first time in 25 years, Col. Dowdy and his wife skipped the Marine Corps Ball. The First Division returned to Iraq this spring. Col. Dowdy received permission to retire early, and left the Marines last month. \"I think I\'m a guy they probably didn\'t know what to do with,\" he says.\r\nThe issue of speed in Iraq remains in debate. Last fall, the Army War College, a Pentagon-financed school where officers analyze tactics, released a study saying there was little evidence that speed affected the outcome of the war. The stiff resistance outside Baghdad suggests U.S. forces may have done better by moving at a more measured pace, entering more cities, rooting out fighters and leaving more troops in the provinces to enforce order, the report said.\r\nHowever, in another study yet to be finalized, the military\'s Joint Center for Lessons Learned says speed was integral to U.S. military success in Iraq. In a speech in February, Adm. E.P. Giambastiani, commander of the Joint Forces, said speed \"reduces decision and execution cycles, creates opportunities, denies an enemy options and speeds his collapse.\"\r\nRetired Gen. Zinni says that, for Col. Dowdy, speed was academic. \"The boss is the boss,\" he says. \"If Gen. Mattis feels you need to move faster, then you move faster.\" Still, he says Col. Dowdy\'s firing could haunt Gen. Mattis too. \"This is not going to add to Jim Mattis\'s luster.\"\r\nSgt. Leal, now stationed in Texas, often tells Col. Dowdy that his reputation will be cleared one day. \"I think he\'ll always be known as the guy who chose men over mission,\" Sgt. Leal says. \"If that\'s how he\'s remembered, it\'s OK.\"\r\nWrite to Christopher Cooper at christopher.cooper@wsj.com
', 'WSJ Iraq article', '', 'inherit', 'open', 'closed', '', '182-revision-2', '', '', '2012-12-06 17:16:33', '2012-12-06 17:16:33', '', 182, 'http://www.andrewkrone.com/?p=184', 0, 'revision', '', 0); INSERT INTO `wp_m3twcb_posts` (`ID`, `post_author`, `post_date`, `post_date_gmt`, `post_content`, `post_title`, `post_excerpt`, `post_status`, `comment_status`, `ping_status`, `post_password`, `post_name`, `to_ping`, `pinged`, `post_modified`, `post_modified_gmt`, `post_content_filtered`, `post_parent`, `guid`, `menu_order`, `post_type`, `post_mime_type`, `comment_count`) VALUES (185, 2, '2012-12-06 17:21:11', '2012-12-06 17:21:11', 'This should ALWAYS be public:\n\nI seriously doubt the \"He’s proud that only one Marine died under his command\".\nSource: http://online.wsj.com/article/SB108111980285073875.html
\nHow a Marine Lost His Command\nIn Race to Baghdad\nCol. Joe Dowdy\'s \'Tempo\' Displeased Superiors;\nBalance of Mission, Men General\'s Call Name: \'Chaos\'\nBy CHRISTOPHER COOPER\nStaff Reporter of THE WALL STREET JOURNAL\nApril 5, 2004; Page A1\nTwo weeks into the war in Iraq, Marine Col\n. Joe D. Dowdy concluded the crowning military maneuver of his life, attacking an elite band of Iraqi troops and then shepherding 6,000 men on an 18-hour, high-speed race toward Baghdad.\nBut no praise awaited the First Marine regimental commander as he pushed into the tent of his superior, Maj. Gen. James Mattis, on April 4, 2003. Instead, Col. Dowdy was stripped of his command, which effectively ended his 24-year Marine career. In a final blow, Col. Dowdy says, the general asked him to empty his sidearm and turn over the ammunition. \"He thought I was going to try to kill myself,\" the colonel says.\nAssuming a battlefield command is the pinnacle of a Marine\'s career. Being removed is near the nadir, exceeded only by a court martial. It\'s extremely rare for the modern U.S. military to relieve a top commander of duty, especially during combat. Col. Dowdy, 47 years old, was the only senior officer in any of the military services to be dismissed in Iraq. He says he would rather have taken an enemy bullet.\nCol. Dowdy\'s firing was even more unusual because he didn\'t commit any of the acts that normally precipitate a dismissal: failing to complete a mission, disobeying a direct order, breaking the rules of war. \"It was a decision based on operating tempo,\" says Lt. Eric Knapp, a spokesman for the First Marine Division. He wouldn\'t elaborate.\nThe colonel\'s removal sparked media coverage and intense speculation in the Marine Corps. The reasons for his firing weren\'t clear, mainly because the colonel and his superiors refused to talk about it. Now, interviews with Col. Dowdy and a score of officers and enlisted men show the colonel was doomed partly by an age-old wartime tension: Men versus mission -- in which he favored his men.\nGen. Mattis and Col. Dowdy personify all that is celebrated in Marine Corps culture. Gen. Mattis, 53, is a \"warrior monk,\" as some of his men put it, a lifelong bachelor consumed with the study and practice of battle tactics. Col. Dowdy is beloved for the attention he pays to his men, from the grunts on up.\nThe qualities of these two Marines eventually tore them apart. Gen. Mattis, a Marine for 33 years, saw speed as paramount in the Iraq war plan. Col. Dowdy thought sacrificing everything for speed imperiled the welfare of his men.\nThe dispute was stoked by widespread but mistaken assumptions about how the Iraqis would fight. The desire for speed stemmed from the Pentagon\'s expectation of a fierce, protracted battle in Baghdad, with far less resistance in other areas. But it turned out that Baghdad fell easily, while the countryside continued to seethe with resistance.\nToday, as U.S. forces tangle with an enemy they clearly underestimated, the military still is debating whether speeding to the Iraqi capital was the best way to proceed.\nGen. Mattis declined to be interviewed for this story. His chief of staff, Col. Joe Dunford, says a decision made during combat is impossible to explain now. \"It\'s just one of those things when you try to put the pieces back together, there\'s no way you can.\"\nOver a plate of chicken quesadillas near his home in Carlsbad, Calif., Col. Dowdy admits to making mistakes. But he doesn\'t believe any of them warranted his removal. He\'s proud that only one Marine died under his command. \"At least I don\'t have a butcher bill to pay,\" he says.\nDust caked the 900 trucks and tanks in Col. Dowdy\'s regiment when they emerged from the desert March 22, 2003. Two days into the war, the regiment was headed to Nasiriyah, a sprawl of slums and industrial compounds where Col. Dowdy\'s problems would begin.\nSince he was a boy in Little Rock, Ark., the colonel had dreamed of an assignment like this. Commander of the 6,000-man First Regiment for nearly a year before the war began, Col. Dowdy was deeply familiar with the plan for invading Iraq.\nWith his shaved head and powerful frame, Col. Dowdy looks like the archetypal Marine. His men praise him for treating them as equals, despite the Marines\' stratified organization. Departing from custom, Col. Dowdy, a married father of three, invited enlisted men as well as officers to the annual Christmas party at his home. When the Marines were camped in Kuwait in the run-up to the war, Col. Dowdy declined an air conditioner when it became clear that only officers would get them, recalls Gunnery Sgt. Robert Kane.\n\"As a colonel, he was entitled to certain privileges, but he was the type of man, if his Marines didn\'t have it, he didn\'t have it,\" says Sgt. Kane, who served under Col. Dowdy in Iraq and in East Timor in 1999.\nBy several accounts, Col. Dowdy was destined to win a general\'s star after the war in Iraq. \"I know people, supporters, peers who think Joe Dowdy is a water walker,\" says Anthony Zinni, a retired four-star Marine general. When Col. Dowdy served under him, \"he was the finest lieutenant I had,\" Gen. Zinni says.\nLike many in his regiment, Col. Dowdy lacked extensive battle experience. In 1983, he saw limited action in Beirut, where 241 Marines were killed in a suicide bombing. He served in Somalia in 1993 and 1994, where Marines were on the vanguard of what became a bloody humanitarian mission.\nGen. Mattis mapped the Marines\' broad plan for Iraq, which many defense analysts consider tactically brilliant. Two 6,000-man regiments of the First Marine Division were to drive toward Baghdad. Col. Dowdy\'s regiment was to head to the city of al Kut -- where an 8,000-man contingent of Saddam Hussein\'s best Republican Guard soldiers were dug in.\nIt was presumed the Iraqis had chemical weapons, so the plan was to avoid engaging them directly. Col. Dowdy\'s unit was to act as a decoy, diverting Mr. Hussein\'s soldiers and allowing the other U.S. regiments to rush in from the northwest through a gap in Iraqi defenses to get to Baghdad.\nCol. Dowdy\'s route would take him through the city of Nasiriyah. Another Marine unit, called Task Force Tarawa, was charged with keeping order there. Pentagon officials assumed the city would offer little resistance because it had long been oppressed by Mr. Hussein. That assumption turned out to be wrong.\nThe plan began to unravel in Nasiriyah. When Col. Dowdy and his men arrived outside the city, they found their passage blocked by a massive firefight. Word filtered back that Task Force Tarawa had suffered casualties, including 18 dead. Adding to the confusion was a U.S. Army supply unit, which had mistakenly stumbled into Nasiriyah. Several soldiers in that unit were dead. Others, including Pvt. Jessica Lynch, had been taken prisoner.\nOutside the city, Col. Dowdy and his staff debated what to do. Several hundred trucks in Col. Dowdy\'s train lacked armor, and squeezing through a fierce battle zone would be complicated, especially on Nasiriyah\'s narrow streets.\nA potential 150-mile bypass around Nasiriyah didn\'t seem feasible. Col. Dowdy wasn\'t sure he had enough fuel and didn\'t know what resistance he might face. The First Regiment was stuck.\nThe halt was anathema to Gen. Mattis, a devotee of a modern military doctrine known as \"maneuver warfare.\" Though Marines have practiced the technique for years, the Iraqi war was its first large-scale test. Instead of following rigid battle plans and attacking on well-defined fronts, this tactic calls for smaller forces to move quickly over combat zones, exploiting opportunities and sowing confusion among the enemy. The technique is summed up in Gen. Mattis\' radio call name: \"Chaos.\"\nGen. Mattis had fought in Iraq before, in the first Gulf War. After that, he commanded the Seventh Regiment of the First Division, known as one of the most battle-ready units in the Marines. \"I\'d follow him again,\" says Gunnery Sgt. Kane, who fought under Gen. Mattis in Afghanistan. \"His whole life is the Corps.\"\nSlight in stature and fierce in demeanor, Gen. Mattis burnished his reputation in Afghanistan, where his men captured an airstrip outside Kandahar. The daring raid cut to the heart of the Taliban resistance. \"The Marines have landed and we now own a piece of Afghanistan,\" Gen. Mattis told reporters there, just a few months after Sept. 11, 2001. The Pentagon scrambled to disavow the remark, but the Marines loved it.\nTo some in the military, the Iraq war promised the perfect test of maneuver warfare. At the time, the U.S. thought the fiercest fighting would begin near Baghdad and involve protracted urban fighting and chemical weapons. Speed was everything. The 1,000-mile journey to Baghdad, many thought, was just a warm-up.\nStopped outside Nasiriyah, Col. Dowdy says, he wasn\'t surprised when Gen. Mattis\'s top aide, Brig. Gen. John Kelly, showed up. The two stood talking on a bridge outside the city, watching the fighting. Gen. Kelly, 53, who has been a Marine for 33 years, had served mostly in academic and administrative posts. \"I thought I knew what war was,\" he says. \"It\'s difficult to imagine if you haven\'t been there.\"\nCol. Dowdy\'s regiment had been stuck in Nasiriyah for more than 24 hours. In retrospect, he says he should have been more decisive about moving through the city.\nOne of the cardinal rules of maneuver warfare stipulates that generals should allow commanders in the field, such as Col. Dowdy, to make tactical decisions. Gen. Kelly says he never ordered Col. Dowdy to move through Nasiriyah and never threatened to remove him from his post. But Lt. Col. Pete Owen, Col. Dowdy\'s chief of staff, has a different recollection. \"When we were stalled out in Nasiriyah, Gen. Kelly came up to me and said, \'If Col. Dowdy doesn\'t get this column moving, I\'m gonna pull him.\' \"\nLate that night, Col. Dowdy decided to move. He gave battalion commander Lt. Col. Lew Craparotta one hour to figure out how to form a cordon of soldiers that would shield the regiment as it passed through the city. Col. Craparotta wasn\'t pleased. \"I don\'t think next time I want to plan something like that on the hood of my Humvee in the pitch black,\" he says.\nThe regiment rumbled through Nasiriyah, past blackened hulks of U.S. vehicles and bodies of dead Marines waiting to be recovered by Task Force Tarawa. It was a sight, Col. Dowdy says, that would remain with him throughout the campaign.\nWhile the other regiments headed north on a four-lane highway, Col. Dowdy\'s group rolled up a two-lane country road that ran through dozens of villages, brimming with enemy forces. An official Marine account later called it a \"running gunfight through the Mesopotamian mud.\"\nThe Iraq regime flooded the road with thousands of fighters. Soon Col. Dowdy\'s men were engaged in battle. A raging sandstorm mixed with rain cut the Marines\' visibility to almost zero. The regiment suffered its first casualty when a rocket-propelled grenade blew through a Humvee door and severed a captain\'s hand, according to men on the scene.\nAs bullets flew and the captain was being hauled out by helicopter, Col. Dowdy, two days without sleep, slouched in his Humvee, with his staff around him. He fell asleep.\nIn wars, commanders fall asleep in meetings, on the radio, even during firefights. Col. Dowdy nodded off for about five minutes, his men say. But his timing couldn\'t have been worse. As he dozed, Gen. Mattis\'s top aide, Gen. Kelly, saw the colonel sleeping. Some of Col. Dowdy\'s men who were there say they believe that made a lasting impression.\nGen. Kelly declines to comment on Col. Dowdy\'s removal, saying such matters are \"sacred ground\" that only Gen. Mattis can address. In answer to general questions about the war, he says a battlefield commander\'s top priority is to \"put it all aside and focus on the mission. I\'ve seen a lot of people learn this the hard way.\"\nTwo days later, on March 27, 2003, the U.S. Army ordered an indefinite halt to the war to allow supply lines to catch up with American fighters.\nCol. Dowdy\'s regiment was camped about 50 miles southeast of Kut. He had his men capture a nearby airfield so supplies could be airlifted in. The next day, Gen. Mattis dropped by to check on his men -- and was infuriated by what he saw: A cratered runway and a Marine captain sitting on a bulldozer reading a paperback book. The captain said he hadn\'t been given an order to fix the runway.\nA few hours later, Col. Dowdy says, he got an earful from Gen. Mattis, who said he should have made sure the job of fixing the runway was done. Col. Dowdy now says he should have issued a written order. He considered stripping the bulldozer operator of his command, but thought better of it. \"If you fire everyone who makes a mistake, pretty soon you\'re standing there all by yourself,\" he says.\nDespite the misstep, Col. Dowdy was receiving daily praise from Gen. Mattis\'s staff, according to Col. John Toolan, who was then the general\'s chief of staff. Intelligence reports suggested that capturing the airport had drawn the attention of Mr. Hussein\'s Republican Guard soldiers. The Iraqis soon announced their presence by lobbing artillery shells at Col. Dowdy\'s regiment.\nThe decoy ploy was working. The other Marine regiments sped on the Iraqis\' untended western flank, toward Baghdad, according to plan.\nAt this point, it could be argued that Col. Dowdy had fulfilled his mission. The war plan called for him to retreat and take a bypass around Kut. Gen. Kelly acknowledges this was the original plan.\nBut after seeing villagers in the area waving and cheering at the Marines, Gen. Kelly believed an enemy collapse was imminent. \"There was so little resistance,\" he says. \"I figured they either deserted or were so far into their holes that they didn\'t want to fight.\" On April 1, 2003, the Fifth Regiment seized a bridge near Kut. At that point, Gen. Kelly says, Hussein\'s once-feared Baghdad Division became \"irrelevant.\"\nIn an unexpected move, Gen. Kelly ordered Col. Dowdy to head to Kut on a \"limited objective\" mission. Once Col. Dowdy got there, he was to decide if his regiment should go through the city, which could trim several hours of travel time.\nCol. Dowdy didn\'t think pushing through Kut would be wise. It would be a quicker route to Baghdad, but he thought it would be dangerous. His men had seen fortified foxholes, sandbagged buildings, mines along road shoulders and several thousand Iraqi fighters. With its narrow bridges and urban tangle, Kut looked even more perilous than Nasiriyah. Was saving a few hours worth the risk?\n\"In war, you have competing demands between men and mission,\" Col. Dowdy says. \"Which one wins out? There\'s no easy answer.\"\nHis superiors confirm that he wasn\'t ordered to take his regiment through the city. But an aggressive Marine could have chosen to plow through to get to Baghdad faster.\nThe generals were growing impatient. The U.S. Army had reached the outskirts of Baghdad. On the morning of April 3, 2003, the 15th day of the war, Gen. Kelly called Col. Dowdy to say he wanted the assault on Kut to begin immediately. Col. Dowdy said he was awaiting fresh ammunition and checking a report that the road to Kut was mined.\nGen. Kelly was furious, according to Col. Dowdy. \"Those aren\'t considerations, they\'re excuses,\" Col. Dowdy recalls the general saying.\nCol. Dowdy says the general continued: \"Why aren\'t you driving through al Kut right now? You know what? I\'m going to recommend that you be relieved of command. Maybe Gen. Mattis won\'t do it. Maybe he\'ll decide he can get along with a regiment that isn\'t worth a s-. But that\'s what I\'m going to recommend.\"\nGen. Kelly says he doesn\'t recall that specific conversation. He says he appreciated the potential risk to life that driving through Kut would pose. In a recent e-mail from Iraq, where he is serving a second tour, he wrote, \"The choice between mission and men ... is never an either-or, but always a balance.\"\nWithin an hour or so, Col. Dowdy and two of his battalions moved into Kut. They immediately met resistance, they say, with fighters popping out of doorways and alleys. \"My machine gun was going crazy,\" says Warrant Officer Thomas Parks, a gunner riding in the lead.\nThe battalions ground to a halt in front of an Iraqi tank, which Gunner Parks hit with a rocket, prompting return fire from the two-story mud huts lining the road. The door of Gunner Parks\' Humvee was blasted off its hinges, while lead filled the door of Col. Dowdy\'s vehicle, according to both men.\nMoments later, Gunner Parks glanced back and saw Col. Dowdy sprinting toward a family of Iraqi civilians. The colonel swept up two children and shoved the family into a bomb crater for cover, Gunner Parks says. An Iraqi fighter moving up an alley aimed a machine gun at Col. Dowdy. Gunner Parks shot him in the head. \"It took me three tries,\" he says.\nThe decision on whether to push through Kut was ultimately up to Col. Dowdy. But in the hours up to and during the fight, he and his staff say they received conflicting guidance. On the field telephone, Gen. Kelly was telling him to push through Kut. But on the radio, division command was urging withdrawal. \"There was a lot of confusion,\" Col. Dowdy says. \"Go. Don\'t go.\" Gen. Kelly agrees there was discussion about what the regiment should do.\nSo Col. Dowdy made a crucial decision: He decided not to go through the city. Getting to Baghdad early wasn\'t worth the risk, he says.\n\"At that point, maybe you\'re damned if you do and damned if you don\'t,\" says Sgt. Maj. Gregory Leal, the top enlisted man in Col. Dowdy\'s regiment. \"There\'s no book out there that says, \'This is how you liberate and occupy a country.\' \"\nAround sunset, the First Regiment started moving to rendezvous with the rest of the division via a 170-mile bypass around Kut. Col. Dowdy\'s men had collected 30 prisoners and, the colonel says, \"I felt like taking them up to division and saying, \'Look, g-ddamn it, we hit resistance in Kut, and here\'s your proof.\' \"\nHeadlights on and ducking intermittent fire from Iraqi peasants, the regiment covered the miles in about half the 36 hours it was supposed to have taken. On April 4, 2003, the regiment rolled into Numaniyah, where the Marines had planned to meet. The regiment had completed its mission with ample time to join the assault on Baghdad.\nBut Col. Dowdy\'s career was dead.\nA helicopter awaited when Col. Dowdy arrived in Numaniyah. Col. Dowdy and Sgt. Maj. Leal climbed aboard. Gen. Mattis had asked to see them. They were flown to the general\'s camp, about 50 miles away.\nWhen they arrived, Sgt. Maj. Leal says Gen. Mattis took him aside. \"How\'s your boss doing?\" the sergeant-major recalls him saying. \"I said, \'He\'s doing fine, sir.\' \" Then, according to Sgt. Maj. Leal, the general snapped: \"You\'re not engaged enough. You\'ve got four battalions and you\'re not pressing the attack.\' \"\n\"I told the general not to fire him,\" Sgt. Maj. Leal recalls. \"I said, \'Tell me what we need to do and we\'ll do it.\' \"\nMen under Gen. Mattis\'s command say he makes decisions quickly and never looks back. Sgt. Maj. Leal says he believes Gen. Mattis had already made up his mind.\nArtillery shells screamed overhead and the tanks and trucks of the Fifth Regiment rumbled past as Col. Dowdy made his way to Gen. Mattis\'s tent. Inside, the colonel sat facing Gens. Mattis and Kelly as an aide served hot tea. The colonel says he knew in his gut that he was about to be fired. \"It\'s like I\'m someplace I\'ve never been before,\" he recalls. \"I\'m failing miserably and I don\'t know why.\"\nHe says Gen. Mattis began with a sympathetic tone: \"We\'re going to get you some rest.\" Gen. Mattis brought up the bulldozer incident. Then, according to Col. Dowdy, the general said Col. Dowdy worried too much about enemy resistance and noted his lack of battle experience.\nCol. Dowdy says he replied: \"I\'ve been fighting my way up this m-f-ing road for the past two weeks.\" He recalls pleading with Gen. Mattis to reconsider. \"Think of my family, my unit,\" he recalls saying.\nIt was not to be. When Gen. Mattis requested his ammunition, Col. Dowdy assured him that he still considered himself a Marine. The general relented. Soon Col. Dowdy got on a helicopter to Kuwait. He called his wife, Priscilla. She\'d already seen the news on CNN.\nWord of his dismissal quickly filtered back to his men. Marines who were there say there was fleeting talk of a mutiny. \"I wanted to go with him,\" says Gunnery Sgt. Kane. \"A lot of guys felt that way. If Col. Dowdy said, \'Get your gear, you\'re coming with me,\' I would\'ve gone, even if it meant the end of my career.\"\nIn ensuing days, media outlets and Marine Internet chat rooms speculated about the colonel\'s defrocking. A day or so after his dismissal, Col. Dowdy wrote a letter that was posted on a Web site catering to families of the First Marine Division.\n\"As all of you are aware ... I am no longer a member of the Regiment,\" the letter said. \"Rest assured, no one, except me is responsible for the reassignment. Priscilla and I will remain loyal to the Marine Corps and to our Division and its very capable leaders.\" Col. Toolan, Gen. Mattis\'s chief of staff, took over the command. The regiment went on to Baghdad, setting up in a slum once known as Saddam City.\nA few weeks later, Col. Dowdy ran into Warrant Officer Parks, who was heading back to the U.S. like most of the First Division. The colonel arranged for his subordinate to get civilian clothes so he could take a commercial airline and meet his wife in New York. \"He called down to command for me and said, \'I got a hero coming, take care of him,\' \" Gunner Parks says. \"Then he got a little choked up, I got a little choked up and I got on a helicopter and left.\"\nCol. Dowdy says he took no joy in his next assignment, as head of personnel at the Marine Air Station in Miramar, Calif. In June, the First Division gave him a performance evaluation. It faulted him for \"being fatigued beyond normal\" and \"not employing the regiment to its full combat potential,\" he says, quoting from the document. It also said he was \"overly concerned about the welfare\" of his Marines, according to Col. Dowdy. By policy, the Marines don\'t comment on performance evaluations.\nLast November, for the first time in 25 years, Col. Dowdy and his wife skipped the Marine Corps Ball. The First Division returned to Iraq this spring. Col. Dowdy received permission to retire early, and left the Marines last month. \"I think I\'m a guy they probably didn\'t know what to do with,\" he says.\nThe issue of speed in Iraq remains in debate. Last fall, the Army War College, a Pentagon-financed school where officers analyze tactics, released a study saying there was little evidence that speed affected the outcome of the war. The stiff resistance outside Baghdad suggests U.S. forces may have done better by moving at a more measured pace, entering more cities, rooting out fighters and leaving more troops in the provinces to enforce order, the report said.\nHowever, in another study yet to be finalized, the military\'s Joint Center for Lessons Learned says speed was integral to U.S. military success in Iraq. In a speech in February, Adm. E.P. Giambastiani, commander of the Joint Forces, said speed \"reduces decision and execution cycles, creates opportunities, denies an enemy options and speeds his collapse.\"\nRetired Gen. Zinni says that, for Col. Dowdy, speed was academic. \"The boss is the boss,\" he says. \"If Gen. Mattis feels you need to move faster, then you move faster.\" Still, he says Col. Dowdy\'s firing could haunt Gen. Mattis too. \"This is not going to add to Jim Mattis\'s luster.\"\nSgt. Leal, now stationed in Texas, often tells Col. Dowdy that his reputation will be cleared one day. \"I think he\'ll always be known as the guy who chose men over mission,\" Sgt. Leal says. \"If that\'s how he\'s remembered, it\'s OK.\"\nWrite to Christopher Cooper at christopher.cooper@wsj.com
', 'WSJ Iraq article', '', 'inherit', 'open', 'closed', '', '182-autosave', '', '', '2012-12-06 17:21:11', '2012-12-06 17:21:11', '', 182, 'http://www.andrewkrone.com/?p=185', 0, 'revision', '', 0), (187, 2, '2013-04-15 22:37:17', '2013-04-15 22:37:17', 'RSA is a ripoff, they\'re following in the footsteps of Microsoft and unfortunately many companies believe RSA is the only way to secure their network.\n\nThey\'re wrong, and here\'s why:\n\nOpenVPN + Server Cert/Key + Pam Authentication Module = FREE two factor authentication.\n\nFirst, let\'s define two factor authentication: It\'s nothing more than two requirements when you logon, tunnel or gain access to a network. For example you have a \"pincode\" or \"password\" that never changes. In addition you might have a key chain \"token\" that is constantly changing. Access requires both, and because the key chain token is always changing it becomes very difficult for the wrong person to gain access.\n\nLittle background on industry: The Citrix Access Gateway is probably the industry standard at providing a single factor authentication gateway for a small company. I\'m guessing most companies concerned with security have something very similar. The gateway or \"CAG\" sits behind the companies firewall and accepts authentication requests. That\'s the first factor, the second is generally a token like system requiring users to carry around a silly key chain. Why? If a user has a private certificate of authority AND a username/password access is still two factor.\n\nWhat absolutely amazes me is that there are open source applications that can provide 2 factor authentication for FREE.\n\nHere\'s what a working OpenVPN server config looks like using PAM:\n\nproto udp\n;proto tcp\nport 1194\ndev tap\ntls-server\ndh /etc/openvpn/easy-rsa/keys/dh1024.pem\nca /etc/openvpn/easy-rsa/keys/ca.crt\ncert /etc/openvpn/easy-rsa/keys/server.crt\nkey /etc/openvpn/easy-rsa/keys/server.key\nduplicate-cn\n#Define the ip address for the tap0 virtual device\nserver 10.8.0.0 255.255.255.0\nifconfig-pool-persist /etc/openvpn/ipp.txt\n#route to be established on the server\nroute-up \"route delete -net 10.8.0.0/24\"\nroute-up \"route add -net 10.8.0.0/24 tap0\"\n\n#Allow Clients to talk to one another\nclient-to-client\n\n#Push the same ping to the server....\npush \"ping 10\"\npush \"ping-restart 60\"\npush \"route 172.16.4.0 255.255.255.0\" #route to another subnet\npush \"route 172.16.5.0 255.255.255.0\" #route to another\npush \"route 172.16.51.0 255.255.255.0\" #route to one more\npush \"route 172.16.8.0 255.255.255.0\" #route to and another\npush \"route 172.16.81.0 255.255.255.0\" #route to some place\npush \"route 172.16.70.0 255.255.255.0\" #route to northern US\npush \"route 172.16.33.0 255.255.255.0\" #route to more north\npush \"dhcp-option DOMAIN companyname.com\" #push the DNS domain suffix\n\ncomp-lzo\nstatus-version 2\nstatus /var/log/openvpn-status.log\nverb 5\n# Keep tunnel open with ping every 10 Seconds, restart ever 120 Seconds\nkeepalive 10 120\n\nplugin /usr/share/openvpn/plugin/lib/openvpn-auth-pam.so login\nclient-cert-not-required\n\nI\'m going to skip a whole bunch of steps to get this working (see openvpn.org) but if the server is running with the above configuration (with no errors) you\'ll have a two factor authentication: 1). Using the signed Certificate of Authority and 2). The username/password on the Linux box access by the openvpn-auth-pam.so module above.\n\nWin XP/Vista/32bit/64bit Client Setup:\n\n1). Install OpenVPN GUI v1.0.3\n2). Load the ca.crt and client.opvn file.\n\nHere\'s an example of the client.ovpn file:\n\nclient\ndev tap\n\n;proto tcp\nproto udp\nremote 1.2.3.4 1194 (1.2.3.4 should be the public ip of the server)\nresolv-retry infinite\nnobind\npersist-key\npersist-tun\nca ca.crt\ncomp-lzo\nverb 3\nmute 20\nauth-user-pass\n\nSave yourself $10k or $20k, learn OpenVPN.\n\n-Andy', 'Two Factor Authentication for Free', '', 'inherit', 'open', 'closed', '', '119-autosave', '', '', '2013-04-15 22:37:17', '2013-04-15 22:37:17', '', 119, 'http://www.andrewkrone.com/?p=187', 0, 'revision', '', 0), (190, 2, '2013-06-05 20:17:02', '2013-06-05 20:17:02', 'Yes, iTunes and the iPhone are absolutely awful. Here\'s why:\r\n\r\n1). Photos,videos and documents CANNOT be dragged and dropped from PC to you Phone (although you can read, you cannot write files???). You must install iTunes and use their tool to sync photos (added 6/5/13)\r\n\r\n2). Constantly changing PC interface (added 6/5/13)\r\n\r\n3). Clunky (187 MB) as of 6/5/13, Version 11.0.4.4. Takes forever to launch (added 6/5/13)\r\n\r\n4). iTunes assumes it will manage all media and music in the best possible way. You CANNOT listen to your music without installing iTunes and you cannot sync or make backups without installing iTunes (added 6/5/13)\r\n\r\n5). Want to unistall iTunes on a PC? You\'ll have to go to the Control Panel. Apple does not provide an \"uninstall\" link in the Start Menu. (added 6/5/13)', 'Why iTunes is Terrible', '', 'publish', 'open', 'closed', '', 'why-itunes-is-terrible', '', '', '2013-06-05 20:36:52', '2013-06-05 20:36:52', '', 0, 'http://www.andrewkrone.com/?p=190', 0, 'post', '', 0), (191, 2, '2013-06-05 20:16:33', '2013-06-05 20:16:33', 'Yes, iTunes and the iPhone are absolutely awful. Here\'s why:\n\n1). Photos and videos CANNOT be dragged and dropped from PC to you Phone (although you can read, you cannot write files???). You must install iTunes and use their tool to sync photos\n\n2). Constantly changing interface\n\n3). Clunky (89 MB) as of 6/5/13\n\n4). iTunes assumes it manages all media and music in the best possible way.', 'Why iTunes is Terrible', '', 'inherit', 'open', 'closed', '', '190-revision', '', '', '2013-06-05 20:16:33', '2013-06-05 20:16:33', '', 190, 'http://www.andrewkrone.com/?p=191', 0, 'revision', '', 0), (192, 2, '2013-06-05 20:17:02', '2013-06-05 20:17:02', 'Yes, iTunes and the iPhone are absolutely awful. Here\'s why:\r\n\r\n1). Photos and videos CANNOT be dragged and dropped from PC to you Phone (although you can read, you cannot write files???). You must install iTunes and use their tool to sync photos\r\n\r\n2). Constantly changing interface\r\n\r\n3). Clunky (89 MB) as of 6/5/13\r\n\r\n4). iTunes assumes it manages all media and music in the best possible way. You CANNOT listen to your music without installing iTunes.', 'Why iTunes is Terrible', '', 'inherit', 'open', 'closed', '', '190-revision-2', '', '', '2013-06-05 20:17:02', '2013-06-05 20:17:02', '', 190, 'http://www.andrewkrone.com/?p=192', 0, 'revision', '', 0), (193, 2, '2013-06-05 20:19:32', '2013-06-05 20:19:32', 'Yes, iTunes and the iPhone are absolutely awful. Here\'s why:\n\n1). Photos,videos and documents CANNOT be dragged and dropped from PC to you Phone (although you can read, you cannot write files???). You must install iTunes and use their tool to sync photos (added 6/5/13)\n\n2). Constantly changing PC interface\n\n3). Clunky (89 MB) as of 6/5/13. Takes forever to launch\n\n4). iTunes assumes it will manage all media and music in the best possible way. You CANNOT listen to your music without installing iTunes and you cannot sync or make backups w\n\n5). Want to unistall iTunes on a PC? You\'ll have to go to the Control Panel. Apple does not provide an \"uninstall\" link in the Start Menu. (added 6/5/13)', 'Why iTunes is Terrible', '', 'inherit', 'open', 'closed', '', '190-autosave', '', '', '2013-06-05 20:19:32', '2013-06-05 20:19:32', '', 190, 'http://www.andrewkrone.com/?p=193', 0, 'revision', '', 0), (194, 2, '2013-06-05 20:18:28', '2013-06-05 20:18:28', 'Yes, iTunes and the iPhone are absolutely awful. Here\'s why:\r\n\r\n1). Photos and videos CANNOT be dragged and dropped from PC to you Phone (although you can read, you cannot write files???). You must install iTunes and use their tool to sync photos\r\n\r\n2). Constantly changing interface\r\n\r\n3). Clunky (89 MB) as of 6/5/13\r\n\r\n4). iTunes assumes it manages all media and music in the best possible way. You CANNOT listen to your music without installing iTunes.\r\n\r\n5). Want to unistall iTunes on a PC? You\'ll have to go to the Control Panel. Apple does not provide an \"uninstall\" link in the Start Menu. (added 6/5/13)', 'Why iTunes is Terrible', '', 'inherit', 'open', 'closed', '', '190-revision-3', '', '', '2013-06-05 20:18:28', '2013-06-05 20:18:28', '', 190, 'http://www.andrewkrone.com/?p=194', 0, 'revision', '', 0), (195, 2, '2013-06-05 20:19:44', '2013-06-05 20:19:44', 'Yes, iTunes and the iPhone are absolutely awful. Here\'s why:\r\n\r\n1). Photos,videos and documents CANNOT be dragged and dropped from PC to you Phone (although you can read, you cannot write files???). You must install iTunes and use their tool to sync photos (added 6/5/13)\r\n\r\n2). Constantly changing PC interface (added 6/5/13)\r\n\r\n3). Clunky (89 MB) as of 6/5/13. Takes forever to launch (added 6/5/13)\r\n\r\n4). iTunes assumes it will manage all media and music in the best possible way. You CANNOT listen to your music without installing iTunes and you cannot sync or make backups without installing iTunes (added 6/5/13)\r\n\r\n5). Want to unistall iTunes on a PC? You\'ll have to go to the Control Panel. Apple does not provide an \"uninstall\" link in the Start Menu. (added 6/5/13)', 'Why iTunes is Terrible', '', 'inherit', 'open', 'closed', '', '190-revision-4', '', '', '2013-06-05 20:19:44', '2013-06-05 20:19:44', '', 190, 'http://www.andrewkrone.com/?p=195', 0, 'revision', '', 0); echo "Updated: ".date("m/d/Y",filemtime("2006.php"));?>