<?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>InstaCarma Blog &#187; permission</title>
	<atom:link href="http://www.instacarma.com/blog/tag/permission/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.instacarma.com/blog</link>
	<description>Information Resource for Web Hosting Technical Support and Server Management</description>
	<lastBuildDate>Tue, 24 May 2011 10:01:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>Unpacking of archive failed</title>
		<link>http://www.instacarma.com/blog/technical/unpacking-of-archive-failed/</link>
		<comments>http://www.instacarma.com/blog/technical/unpacking-of-archive-failed/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 21:24:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[attribute]]></category>
		<category><![CDATA[permission]]></category>
		<category><![CDATA[unzip]]></category>
		<category><![CDATA[zip]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=1093</guid>
		<description><![CDATA[Filed under: attribute, permission, unzip, zip Issue : Unzipping of an archive fails with the following error : Updating : gzip 1/2 Error unpacking rpm package gzip-1.3.5-11.el5.centos.1.i386 error: unpacking of archive failed on file /bin/gunzip: cpio: rename Failed: gzip.i386 0:1.3.5-11.el5.centos.1 This is happening since the last cPanel update only. Fix : This might be a [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/attribute/'>attribute</a>, <a href='http://www.instacarma.com/blog/tag/permission/'>permission</a>, <a href='http://www.instacarma.com/blog/tag/unzip/'>unzip</a>, <a href='http://www.instacarma.com/blog/tag/zip/'>zip</a></p>
<p><strong>Issue : </strong></p>
<p>Unzipping of an archive fails with the following error :</p>
<p><em>Updating : gzip 1/2<br />
Error unpacking rpm package gzip-1.3.5-11.el5.centos.1.i386<br />
error: unpacking of archive failed on file /bin/gunzip: cpio: rename</p>
<p>Failed:<br />
gzip.i386 0:1.3.5-11.el5.centos.1</em></p>
<p>This is happening since the last cPanel update only.</p>
<p><strong>Fix : </strong></p>
<p>This might be a problem due to the attributes of the binary. Run the following command and try again.</p>
<blockquote><p>chattr -i /bin/gunzip</p></blockquote>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/unpacking-of-archive-failed/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/unpacking-of-archive-failed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to resolve multiple problems due to permission issues</title>
		<link>http://www.instacarma.com/blog/technical/how-to-resolve-multiple-problems-due-to-permission-issues/</link>
		<comments>http://www.instacarma.com/blog/technical/how-to-resolve-multiple-problems-due-to-permission-issues/#comments</comments>
		<pubDate>Sat, 05 Dec 2009 17:23:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Articles and tutorials]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[ownership]]></category>
		<category><![CDATA[permission]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[WHM]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=1019</guid>
		<description><![CDATA[Filed under: cPanel, ownership, permission, scripts, ssh, WHM Sometimes, permissions might get screwed server wide resulting in various problems for different users. Here are some steps to reset the permissions. /scripts/checkbsdgroups &#8212; Checks and repairs proftpd ownership on FreeBSD. /scripts/chownpublichtmls &#8212; Change ownership of all users web space to them, which is useful for converting [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/cpanel/'>cPanel</a>, <a href='http://www.instacarma.com/blog/tag/ownership/'>ownership</a>, <a href='http://www.instacarma.com/blog/tag/permission/'>permission</a>, <a href='http://www.instacarma.com/blog/tag/scripts/'>scripts</a>, <a href='http://www.instacarma.com/blog/tag/ssh/'>ssh</a>, <a href='http://www.instacarma.com/blog/tag/whm/'>WHM</a></p>
<p>Sometimes, permissions might get screwed server wide resulting in various problems for different users.</p>
<p>Here are some steps to reset the permissions.</p>
<p><em>/scripts/checkbsdgroups</em> &#8212; Checks and repairs proftpd ownership on FreeBSD.<br />
<em>/scripts/chownpublichtmls</em> &#8212; Change ownership of all users web space to them, which is useful for converting to suexec. Files owned by nobody are deleted.</p>
<p>Then, login to WHM as &#8216;root&#8217; and go to Whm >> Resellers >> Reseller Center >> Reset Resellers</p>
<p>Select all Resellers under Reset package permissions to default and click  the reset button.</p>
<p>Assuming that you have an ACL with the default permissions,  select all Resellers under &#8216;Apply an ACL list to multiple resellers >> Select the appropriate ACL list >> Apply.</p>
<p>Also, it is advised to run the following : </p>
<p>/scripts/fixeverything/<br />
/scripts/upcp &#8211;force</p>
<p>service httpd restart<br />
service named restart</p>
<p>Also, refer to <a href="http://instacarma.com/blog/technical/changing-multiple-account-ownerships-via-ssh/">Changing multiple account ownerships via SSH</a></p>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/how-to-resolve-multiple-problems-due-to-permission-issues/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/how-to-resolve-multiple-problems-due-to-permission-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>535 Incorrect authentication data</title>
		<link>http://www.instacarma.com/blog/technical/535-incorrect-authentication-data-2/</link>
		<comments>http://www.instacarma.com/blog/technical/535-incorrect-authentication-data-2/#comments</comments>
		<pubDate>Sat, 05 Dec 2009 17:08:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[ownership]]></category>
		<category><![CDATA[permission]]></category>
		<category><![CDATA[SMTP]]></category>
		<category><![CDATA[tweak]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=1015</guid>
		<description><![CDATA[Filed under: authentication, cPanel, email, ownership, permission, SMTP, tweak Error : 2008-08-02 11:18:23 fixed_login authenticator failed for (localhost) [127.0.0.1]:54412 I=[127.0.0.1]:25: 535 Incorrect authentication data Permissions for /etc/passwd and /etcshadow are fine. /scripts/eximup &#8211;force did not help either. Solution : There can be multiple reasons for this. First, check whether the folder &#8216;etc&#8217; located at /home/&#8221;username&#8221;/etc/ [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/authentication/'>authentication</a>, <a href='http://www.instacarma.com/blog/tag/cpanel/'>cPanel</a>, <a href='http://www.instacarma.com/blog/tag/email/'>email</a>, <a href='http://www.instacarma.com/blog/tag/ownership/'>ownership</a>, <a href='http://www.instacarma.com/blog/tag/permission/'>permission</a>, <a href='http://www.instacarma.com/blog/tag/smtp/'>SMTP</a>, <a href='http://www.instacarma.com/blog/tag/tweak/'>tweak</a></p>
<p><strong>Error :</strong> </p>
<p><em>2008-08-02 11:18:23 fixed_login authenticator failed for (localhost) [127.0.0.1]:54412 I=[127.0.0.1]:25: 535 Incorrect authentication data</em></p>
<p>Permissions for <em>/etc/passwd </em>and <em>/etcshadow</em> are fine.<br />
<em>/scripts/eximup &#8211;force</em> did not help either.</p>
<p><strong>Solution : </strong></p>
<p>There can be multiple reasons for this.</p>
<p>First, check whether the folder &#8216;etc&#8217; located at <em>/home/&#8221;username&#8221;/etc/</em> has the ownership <em>username:mail </em>. If not, then correct that.</p>
<blockquote><p>chown username:mail /home/username/etc/ -R </p></blockquote>
<p>===================<br />
If that does not resolve the issue then check the permissions for the folder <em>/home/username</em> itself. It should be 711.</p>
<p>In one such case, it was set to 700. So, the mail group process couldn&#8217;t get down into <em>/home/user/etc/domain</em> to read the passwd file. Hence, the error.<br />
===================<br />
Another scenario when this can  happen is when the option “Allow mail account authentication using the password of the domain owner’s account” in WHM -> Server Configuration -> Tweak Settings is enabled.<br />
Webmail logs you in but attempts to use the cPanel account password via SMTP. Hence, the problem.</p>
<p>Disable the option and check.<br />
===================</p>
<p>If none of these resolve the issue then  try running <em>/scripts/upcp </em>.</p>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/535-incorrect-authentication-data-2/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/535-incorrect-authentication-data-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing multiple account ownerships via SSH</title>
		<link>http://www.instacarma.com/blog/technical/changing-multiple-account-ownerships-via-ssh/</link>
		<comments>http://www.instacarma.com/blog/technical/changing-multiple-account-ownerships-via-ssh/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 14:41:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[ownership]]></category>
		<category><![CDATA[permission]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=970</guid>
		<description><![CDATA[Filed under: ownership, permission Issue: How to change the ownership of multiple accounts under /home via SSH? The option in WHM is a bit tedious. Solution : To change the ownership of all accounts to the respective user.user : cd /home ls -al &#124; grep root for i in `ls /var/cpanel/users/`; do chown $i:$i /home/$i [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/ownership/'>ownership</a>, <a href='http://www.instacarma.com/blog/tag/permission/'>permission</a></p>
<p><strong>Issue:</strong></p>
<p>How to change the ownership of multiple accounts under /home via SSH? The option in WHM is a bit tedious.</p>
<p><strong>Solution : </strong></p>
<p>To change the ownership of all accounts to the respective <em>user.user</em>  :</p>
<blockquote><p>cd /home<br />
ls -al | grep root</p>
<p>for i in `ls /var/cpanel/users/`; do chown $i:$i /home/$i ; done<br />
for i in `ls /var/cpanel/users/`; do chown -R $i:$i /home/$i/* ; done</p></blockquote>
<p>Then change the ownership of the individual <em>public_htmls</em> to their respective<em> user.nobody</em>:</p>
<blockquote><p>
for i in `ls /var/cpanel/users/`; do chown $i:nobody /home/$i/public_html ; done</p></blockquote>
<p>Change the permissions for <em>public_htmls</em> to 750:</p>
<blockquote><p>for i in `ls /var/cpanel/users/`; do chmod 750 /home/$i/public_html ; done</p></blockquote>
<p>Fix the permissions for mail to work fine:</p>
<blockquote><p>/scripts/mailperm</p></blockquote>
<p>Fix the ownership of <em>/home</em>:</p>
<blockquote><p>chown root.root /home </p></blockquote>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/changing-multiple-account-ownerships-via-ssh/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/changing-multiple-account-ownerships-via-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

