Re: Serious Privileges Problem: Second Post!

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



On Sat, Nov 7, 2009 at 10:05 AM, Drew <drew.kay@xxxxxxxxx> wrote:
> Nonsense. You can't solve it either, can you? You're as stumped as the rest
> of us...but arrogant, too.
> V

Victor,

To be brutally honest, you haven't given the list the info we need to
help you solve this problem. I've been following this thread and so
far I'm seeing a puzzle with half the pieces missing.

Can you please ask questions that I can answer so that you can help me?

That said the first line of your error messages typically indicates
that the script can't find the python executable pointed at by the
script on the #! line.

[root@13gems html]# ls /usr/bin/|grep pyth*
python
python2
python2.4

 Someone asked for the code:

THIS IS index,py

#!/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')

template(page, w)

THIS IS template.py

#!/usr/bin/python

import cgitb; cgitb.enable()
import cgi
import sys,os
sys.path.append(os.getcwd())

p = 'template'

def template(page, w):
  wn = int(w)/1024
  print "Content-Type: text/html"
  print
  print '''
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<head xmlns="http://www.w3.org/1999/xhtml">
<style type='text/css'>
.text {  font-family: Arial, Helvetica, sans-serif; font-size: 16px; text-decoration: none; text-align: justify}
</style>
<title>Global Solutions Group</title>
<meta http-equiv="distribution" content="Global" />
<meta http-equiv="robots" content="index all, follow all" />
<meta name="author" content="This web site developed by beno. You may reach him at his web site [beno.vi], or by dialing 340-773-0687 and asking for room 102." />
<script language="_javascript_" type="text/_javascript_">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src="">}

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=""> }

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src="">}
//-->
</script>
</head>
<body > <script language="_javascript_1.2" src=""
<script language="_javascript_1.2" src="">   print "<table width='%s' bgcolor='#ffffff' cellpadding='0' cellspacing='0'><!--" % (str(wn*1008))
  print '--><tr><!--'
  print '--><td><!--'
  print '--><img src="" width="%s" height="%s" alt="" /><!--' % (str(wn*1008), str(wn*101))
  print '--></td><!--'
  print '--></tr><tr><!--'
  print '--><td><!--'
  print '--><table align="left" width="%s" cellpadding="0" cellspacing="0"><!--' % (str(wn*1008))
  print '--><tr><!--'
  print "--><td><img src="" alt='' width='%s' height='%s' /></td><!--" % (str(wn*219), str(wn*21))
  print '--><td><a href="" src="" name="Home" id="Home" alt="Home" width="%s" height="%s" border="0" /></a></td><!--' % (str(wn*80), str(wn*21))
  print '--><td><a href="" src="" name="office-supplies" id="office-supplies" alt="office supplies" width="%s" height="%s" border="0" /></a></td><!--' % (str(wn*137), str(wn*21))
  print '--><td><a href="" src="" name="catalog" id="catalog" alt="catalog" width="%s" height="%s" border="0" /></a></td><!--' % (str(wn*86), str(wn*21))
  print '--><td><a href="" src="" name="customer-template" id="customer-template" alt="customer template" width="%s" height="%s" border="0" /></a></td><!--' % (str(wn*145), str(wn*21))
  print '--><td><a href="" src="" name="forms" id="forms" alt="forms" width="%s" height="%s" border="0" /></a></td><!--' % (str(wn*84), str(wn*21))
  print '--><td><a href="" src="" name="about" id="about" alt="about us" width="%s" height="%s" border="0" /></a></td><!--' % (str(wn*101), str(wn*21))
  print '--><td><a href="" src="" name="contact" id="contact" alt="contact us" width="%s" height="%s" border=0></a></td><!--' % (str(wn*100), str(wn*21))
  print '--><td><img src="" alt="" width="%s" height="%s" /></td><!--' % (str(wn*72), str(wn*21))
  print '''--></tr><!--
--></table><!--
--></tr><tr><!--
--><td><!--'''
  print '--><table width="%s" cellpadding="0" cellspacing="0"><!--' % (str(wn*1008))
  print '--><tr><!--'
  print '--><td width="%s"><!--' % (str(wn*1008))
  print '--><img src="" width="%s" height="%s" alt="" /><!--' % (str(wn*1008), str(wn*15))
  print '''--></td><!--
--></tr><tr><!--
--><td><!--
--><table class="text"><tr><td><!--
'''
  print '--><iframe src="" width="%s" height="%s" frameborder="0"></iframe><!--' % (page, page, w, str(wn*988), str(wn*400))
  print '''
--></td><!--
--></tr><!--
--></table>
</body>
</html>
'''

TIA,
V


--
Drew

"Nothing in life is to be feared. It is only to be understood."
--Marie Curie
_______________________________________________
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