I tried all of that including <br><pre><font><font class="code">echo 0 >/selinux/enforce<br>and no luck. Ideas?<br>V<br></font></font></pre><br><br><div class="gmail_quote">On Fri, Nov 6, 2009 at 3:44 PM, Craig White <span dir="ltr"><<a href="mailto:craigwhite@azapple.com">craigwhite@azapple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Fri, 2009-11-06 at 15:31 -0500, Victor Subervi wrote:<br>
> My bad. I meant index.py and the permissions were the same. Trying to<br>
> resolve the problem, I have discovered that if I create the files from<br>
> the command prompt as root they work. I originally ftp'd them to the<br>
> server as another user. So I chown'd to root.root and chmod to 755 and<br>
> it *still* doesn't work. Only the test files I create on the server.<br>
> Why would that be?<br>
><br>
> [root@13gems global_solutions]# ls -al | grep test.py<br>
> -rwxr-xr-x  1 root root    298 Nov  6 12:24 test.py<br>
> [root@13gems global_solutions]# ls -al | grep test2.py<br>
> -rwxr-xr-x  1 root root   5716 Nov  6 12:25 test2.py<br>
> [root@13gems global_solutions]# ls -al | grep index.py<br>
> -rwxr-xr-x  1 root root    316 Nov  6 07:05 index.py<br>
> [root@13gems global_solutions]# ls -al | grep template.py<br>
> -rwxr-xr-x  1 root root   5806 Nov  6 07:06 template.py<br>
> -rwxr-xr-x  1 root root   6093 Nov  6 07:06 template.pyc<br>
><br>
> where test.py is identical to index.py (other than the necessary<br>
> import) and template is identical to test2.py<br>
> TIA,<br>
----<br>
that sounds like SELinux<br>
<br>
ls -lZ and you will find that the files you create in place have a<br>
different security context than the ones you copied into place.<br>
<br>
fixfiles relabel /var/www/html<br>
# might just work<br>
<br>
touch /.autorelabel<br>
# and then reboot will relabel all copied files to the correct contexts<br>
for the location<br>
<br>
or you could turn off SELinux and reboot<br>
<br>
Craig<br>
<br>
<br>
--<br>
This message has been scanned for viruses and<br>
dangerous content by MailScanner, and is<br>
believed to be clean.<br>
<br>
_______________________________________________<br>
CentOS mailing list<br>
<a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
</blockquote></div><br>