Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-13 Thread Nifty Cluster Mitch
On Tue, Nov 10, 2009 at 01:05:36AM -0600, Frank Cox wrote: On Tue, 10 Nov 2009 07:53:30 +0100 Mogens Kjaer wrote: The file command will verify that for you. Are you sure? Well, I guess not then. I assumed that file would treat a .py file as a text file. I don't do any

Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-09 Thread Mogens Kjaer
On 11/07/2009 08:33 PM, Frank Cox wrote: ... The file command will verify that for you. Are you sure? $ cat test1.py #!/usr/bin/python print Hello World $ cat test2.py #!/usr/bin/python print Hello World $ ./test1.py Hello World $ ./test2.py ./test2.py: Command not found. $ file test1.py

Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-09 Thread Frank Cox
On Tue, 10 Nov 2009 07:53:30 +0100 Mogens Kjaer wrote: The file command will verify that for you. Are you sure? Well, I guess not then. I assumed that file would treat a .py file as a text file. I don't do any programming with Python and haven't looked at it closely. file tells me that a

Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-08 Thread mark
John R Pierce wrote: Kwan Lowe wrote: On Sat, Nov 7, 2009 at 12:04 PM, Les Mikesell lesmikes...@gmail.com wrote: How did you get it from machine to machine? This could be a line-ending issue from a copy from windows or the wrong mode in ftp. That is my guess too. This exact error will

Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-08 Thread mark
Frank Cox wrote: On Sat, 07 Nov 2009 14:10:30 -0500 Victor Subervi wrote: It's been a while, but now I remember what a dos file looks like in a unix environment. No, these files look like unix files (without the carets and crap). The file command will verify that for you. You said

[CentOS] Serious Privileges Problem: Second Post!

2009-11-07 Thread Victor Subervi
I have a serious privileges problem that is making it impossible to serve python pages on a CentOS server. I have tried to resolve this problem in my last post, but now it appears that interest has petered out. I'm desperate and hoping someone on this list can help. [Fri Nov 06 11:50:40 2009]

Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-07 Thread Victor Subervi
On Sat, Nov 7, 2009 at 9:23 AM, Neil Aggarwal n...@jammconsulting.comwrote: Victor: I have a serious privileges problem that is making it impossible to serve python pages on a CentOS server. I have tried to resolve this problem in my last post, but now it appears that interest has

Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-07 Thread Bobby
On Saturday 07 November 2009 09:14:06 Victor Subervi wrote: I have a serious privileges problem that is making it impossible to serve python pages on a CentOS server. I have tried to resolve this problem in my last post, but now it appears that interest has petered out. I'm desperate and

Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-07 Thread Drew
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

Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-07 Thread Victor Subervi
On Sat, Nov 7, 2009 at 10:05 AM, Drew drew@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

Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-07 Thread Les Mikesell
Victor Subervi wrote: fixfiles relabel /var/www/html # might just work It didn't touch /.autorelabel # and then reboot will relabel all copied files to the correct contexts for the location I rebooted apache with no luck or you could turn off SELinux and reboot I did that and the

Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-07 Thread Victor Subervi
Thank you. I just rebooted the machine. Unfortunately, that didn't help. V On Sat, Nov 7, 2009 at 11:00 AM, Les Mikesell lesmikes...@gmail.com wrote: Victor Subervi wrote: fixfiles relabel /var/www/html # might just work It didn't touch /.autorelabel # and then reboot will

Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-07 Thread Negative
On Sat, Nov 7, 2009 at 11:12 AM, Victor Subervi victorsube...@gmail.comwrote: Thank you. I just rebooted the machine. Unfortunately, that didn't help. V On Sat, Nov 7, 2009 at 11:00 AM, Les Mikesell lesmikes...@gmail.comwrote: Victor Subervi wrote: fixfiles relabel /var/www/html #

Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-07 Thread mark
Les Mikesell wrote: Victor Subervi wrote: fixfiles relabel /var/www/html # might just work It didn't touch /.autorelabel # and then reboot will relabel all copied files to the correct contexts for the location I rebooted apache with no luck or you could turn off SELinux and reboot I

Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-07 Thread Benjamin Donnachie
2009/11/7 mark m.r...@5-cent.us: 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

Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-07 Thread Victor Subervi
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.

Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-07 Thread Les Mikesell
Victor Subervi wrote: 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

Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-07 Thread Kwan Lowe
On Sat, Nov 7, 2009 at 12:04 PM, Les Mikesell lesmikes...@gmail.com wrote: How did you get it from machine to machine?  This could be a line-ending issue from a copy from windows or the wrong mode in ftp. That is my guess too. This exact error will happen if the file is copied in Dos format

Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-07 Thread John R Pierce
Kwan Lowe wrote: On Sat, Nov 7, 2009 at 12:04 PM, Les Mikesell lesmikes...@gmail.com wrote: How did you get it from machine to machine? This could be a line-ending issue from a copy from windows or the wrong mode in ftp. That is my guess too. This exact error will happen if

Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-07 Thread Victor Subervi
Adding python debugging to apache revealed an import error. The strange thing is that when I load the exact lines of code in the command line python interpreter, it has no trouble importing the class in question. With respect to the dos question, I've uploaded this exact code in its exact format

Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-07 Thread Stephen Harris
On Sat, Nov 07, 2009 at 10:23:11AM -0800, John R Pierce wrote: Kwan Lowe wrote: On Sat, Nov 7, 2009 at 12:04 PM, Les Mikesell lesmikes...@gmail.com wrote: How did you get it from machine to machine? This could be a line-ending issue from a copy from windows or the wrong mode in

Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-07 Thread Benjamin Donnachie
2009/11/7 Victor Subervi victorsube...@gmail.com: selinux must be off because I moved the whole folder to a backup. Did you edit /etc/selinux/config to disable it? Please, just try the things people are suggesting rather than dismissing them instantly - it'll be much easier in the long run.

Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-07 Thread Robert
Victor Subervi wrote: Adding python debugging to apache revealed an import error. The strange thing is that when I load the exact lines of code in the command line python interpreter, it has no trouble importing the class in question. With respect to the dos question, I've uploaded this

Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-07 Thread Victor Subervi
I moved /etc/selinux/config to /etc/selinux/config.BAK and created an empty folder to replace it. Then I rebooted the server. It's been a while, but now I remember what a dos file looks like in a unix environment. No, these files look like unix files (without the carets and crap). TIA, V On Sat,

Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-07 Thread Benjamin Donnachie
2009/11/7 Victor Subervi victorsube...@gmail.com: I moved /etc/selinux/config to /etc/selinux/config.BAK and created an empty folder to replace it. Then I rebooted the server. Check with the command getenforce please. Ben ___ CentOS mailing list

Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-07 Thread Les Mikesell
Victor Subervi wrote: I moved /etc/selinux/config to /etc/selinux/config.BAK and created an empty folder to replace it. Then I rebooted the server. It's been a while, but now I remember what a dos file looks like in a unix environment. No, these files look like unix files (without the

Re: [CentOS] Serious Privileges Problem: Second Post!

2009-11-07 Thread Frank Cox
On Sat, 07 Nov 2009 14:10:30 -0500 Victor Subervi wrote: It's been a while, but now I remember what a dos file looks like in a unix environment. No, these files look like unix files (without the carets and crap). The file command will verify that for you. You said that this thing runs fine