Re: Serious Privileges Problem: Second Post!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



selinux must be off because I moved the whole folder to a backup.
Regarding running index.py, how? I tried this:
python index.py
and it just printed the whole thing to screen. But I can't image how there would be an indent error. (1) This exact file without edit displays fine on another server. (2) I copied the whole thing and pasted it into test.py. I can't explain the size difference.

[root@13gems global_solutions]# diff index.py test.py
1,19c1,17
< #!/usr/bin/python
<
< import string
< import cgitb; cgitb.enable()
< import cgi
< import sys,os
< sys.path.append(os.getcwd())
< from template import template
<
< ourFile = string.split(__file__, "/")
< page = ourFile[len(ourFile) - 1][:-3]
<
< form = cgi.FieldStorage()
< w = form.getfirst('w', '1024')
<
< print page
<
< template(page, w)
<
---
> #!/usr/bin/python
>
> import string
> import cgitb; cgitb.enable()
> import cgi
> import sys,os
> sys.path.append(os.getcwd())
> from test2 import template
>
> ourFile = string.split(__file__, "/")
> page = ourFile[len(ourFile) - 1][:-3]
>
> form = cgi.FieldStorage()
> w = form.getfirst('w', '1024')
>
> template(page, w)
>


On Sat, Nov 7, 2009 at 11:42 AM, Benjamin Donnachie <benjamin@xxxxxxxxxxxxx> wrote:
2009/11/7 mark <m.roth@xxxxxxxxx>:
>> What do you mean by 'rebooted apache'?  You have to reboot the whole machine to
>> change selinlux settings.
> No, you don't. Either the echo, or the setenforce command will change it.

Rebooting probably turned SELinux back on again.  Run the "setenforce
permissive" command again and then try.

Ben
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux