<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CatalystX &#187; ensim</title>
	<atom:link href="http://www.catalystx.com/news/tag/ensim/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.catalystx.com</link>
	<description></description>
	<lastBuildDate>Mon, 29 Nov 2010 14:20:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Dual Fix for Ensim/Parallels PAM Modules</title>
		<link>http://www.catalystx.com/news/2008/12/01/dual-fix-for-ensim-parallels-pam-modules/</link>
		<comments>http://www.catalystx.com/news/2008/12/01/dual-fix-for-ensim-parallels-pam-modules/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 11:08:45 +0000</pubDate>
		<dc:creator>Mark Steel</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[ensim]]></category>
		<category><![CDATA[parallels]]></category>

		<guid isPermaLink="false">http://wp.catalystx.com/?p=58</guid>
		<description><![CDATA[/var/log/secure gets slammed with these errors every time anyone tries to connect to any service which requires authorization: Deprecated pam_stack module called from service [servicename] pam_env([servicename]:setcred): Unable to open env file: /etc/environment The fix has been elusive, as Ensim continues to re-write the pam.d files, but running this script will take care of both issues [...]]]></description>
			<content:encoded><![CDATA[<p>/var/log/secure gets slammed with these errors every time anyone tries to connect to any service which requires authorization:</p>
<blockquote>
<pre>Deprecated pam_stack module called from service
     [<em>servicename</em>]
pam_env([<em>servicename</em>]:setcred):
     Unable to open env file: /etc/environment</pre>
</blockquote>
<p>The fix has been elusive, as Ensim continues to re-write the pam.d files, but running this script will take care of both issues posthaste.</p>
<p>Save this as /usr/local/sbin/fix_pam:</p>
<pre class="brush: sh">#!/bin/sh

# -----------------------------------------------------------------------------
#
# fix_pam ver 1.0a
#
# (c) Copyright 2007 Mark Steel / Catalyst IT. All rights reserved.
#
# This script may only be distributed unmodified.
#
# This script is intended to be used to fix the &quot;depracated pam stack module&quot;
# errors on servers and virtual hosts.
#
# NOTE: THIS SCRIPT IS NOT GPL
#
# -----------------------------------------------------------------------------

perl -i -p -e &#039;s/required(.*)pam_stack.so service=system-auth/include\tsystem-auth/&#039; /etc/pam.d/*
perl -i -p -e &#039;s/pam_pwdb/pam_unix/&#039; /etc/pam.d/*
perl -i -p -e &#039;s/pam_env.so$/pam_env.so readenv=0/&#039; /etc/pam.d/system-auth

perl -i -p -e &#039;s/pam_env.so$/pam_env.so readenv=0/&#039; /home/virtual/FILESYSTEMTEMPLATE/siteinfo/etc/pam.d/system-auth
VIRTUAL=`find /home/virtual/FILESYSTEMTEMPLATE -name pam.d`
for i in $VIRTUAL; do
perl -i -p -e &#039;s/required(.*)pam_stack.so service=system-auth/include\tsystem-auth/&#039; $i/*
perl -i -p -e &#039;s/pam_pwdb/pam_unix/&#039; $i/*
done

DOMAINS=`sitelookup -a site_root`
for i in $DOMAINS; do
perl -i -p -e &#039;s/required(.*)pam_stack.so service=system-auth/include\tsystem-auth/&#039; $i/etc/pam.d/*
perl -i -p -e &#039;s/pam_pwdb/pam_unix/&#039; $i/etc/pam.d/*
perl -i -p -e &#039;s/pam_env.so$/pam_env.so readenv=0/&#039; $i/etc/pam.d/system-auth
done

service saslauthd restart</pre>
</p>
<p>Run once, and you&#8217;re golden.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.catalystx.com/news/2008/12/01/dual-fix-for-ensim-parallels-pam-modules/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

