[CentOS] Serious Privileges Problem: Second Post!

Victor Subervi victorsubervi at gmail.com
Sat Nov 7 15:12:13 UTC 2009

On Sat, Nov 7, 2009 at 10:05 AM, Drew <drew.kay at gmail.com> 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 at 13gems html]# ls /usr/bin/|grep pyth*

 Someone asked for the code:

THIS IS index,py


import string
import cgitb; cgitb.enable()
import cgi
import sys,os
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


import cgitb; cgitb.enable()
import cgi
import sys,os

p = 'template'

def template(page, w):
  wn = int(w)/1024
  print "Content-Type: text/html"
  print '''
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "
<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}
<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;
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}

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++)

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++)
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;
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
x.oSrc=x.src; x.src=a[i+2];}
<script language="JavaScript1.2" src="quickmenu/sample_data.js"></script>
<script language="JavaScript1.2" src="quickmenu/dqm_script.js"></script>'''
  print "<table width='%s' bgcolor='#ffffff' cellpadding='0'
cellspacing='0'><!--" % (str(wn*1008))
  print '--><tr><!--'
  print '--><td><!--'
  print '--><img src="images/top.jpg" 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='images/left.jpg' alt='' width='%s' height='%s'
/></td><!--" % (str(wn*219), str(wn*21))
  print '--><td><a href="index.py"
onMouseOut="MM_swapImgRestore()"><img src="images/home-off.jpg" name="Home"
id="Home" alt="Home" width="%s" height="%s" border="0" /></a></td><!--' %
(str(wn*80), str(wn*21))
  print '--><td><a href="Office_Supplies.py"
onMouseOut="MM_swapImgRestore()"><img src="images/office-supplies-off.jpg"
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="Catalog.py"
onMouseOut="MM_swapImgRestore()"><img src="images/catalog-off.jpg"
name="catalog" id="catalog" alt="catalog" width="%s" height="%s" border="0"
/></a></td><!--' % (str(wn*86), str(wn*21))
  print '--><td><a href="Customer_Templates.py"
onMouseOut="MM_swapImgRestore()"><img src="images/customer-template-off.jpg"
name="customer-template" id="customer-template" alt="customer template"
width="%s" height="%s" border="0" /></a></td><!--' % (str(wn*145),
  print '--><td><a href="Forms.py"
onMouseOut="MM_swapImgRestore()"><img src="images/forms-off.jpg"
name="forms" id="forms" alt="forms" width="%s" height="%s" border="0"
/></a></td><!--' % (str(wn*84), str(wn*21))
  print '--><td><a href="About_Us.py"
onMouseOut="MM_swapImgRestore()"><img src="images/about-off.jpg"
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="Contact_Us.py"
onMouseOut="MM_swapImgRestore()"><img src="images/contact-off.jpg"
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="images/right.jpg" alt="" width="%s" height="%s"
/></td><!--' % (str(wn*72), str(wn*21))
  print '''--></tr><!--
  print '--><table width="%s" cellpadding="0" cellspacing="0"><!--' %
  print '--><tr><!--'
  print '--><td width="%s"><!--' % (str(wn*1008))
  print '--><img src="images/bottom.jpg" width="%s" height="%s" alt=""
/><!--' % (str(wn*1008), str(wn*15))
  print '''--></td><!--
--><table class="text"><tr><td><!--
  print '--><iframe src="%s_frame.py?p=%s&w=%s" width="%s" height="%s"
frameborder="0"></iframe><!--' % (page, page, w, str(wn*988), str(wn*400))
  print '''


> --
> Drew
> "Nothing in life is to be feared. It is only to be understood."
> --Marie Curie
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20091107/ccde669d/attachment.html>

More information about the CentOS mailing list