LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-03-2005, 10:47 PM   #1
ruwach
Member
 
Registered: Feb 2003
Location: sc
Distribution: mandrake 9
Posts: 73

Rep: Reputation: 15
wierd cgi problem


Hello all.
i have a strange problem with some python cgi scripts.
the deal is.....
i keep loosing permission to write to a file created by a cgi script.
the file is created in a directory created by a python script. but after the file is created by the cgi script,
another script in the same folder cannot open it to write to. think that its a permissions issue.
the thing is, all of it works on my Arch linux computer,
but it doesn't work on my Ubuntu computer.
same folders, same everything (except http.conf) because debian sets up its modules differently.
how come it will create the directory, create the files, but not let me go back into the file to edit?
any suggestions? what could be different? from one computer to the next?
Edit/Delete Message
 
Old 06-04-2005, 05:03 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
why dont u chmod 0777 the new created file after creation? this will probably solve the problem.
 
Old 06-04-2005, 07:15 AM   #3
ruwach
Member
 
Registered: Feb 2003
Location: sc
Distribution: mandrake 9
Posts: 73

Original Poster
Rep: Reputation: 15
sounds cool -
i guess i will have to write that into the script just after the file is created so i can open it and read from it.
i just dont get why it creates a file, writes to the file, but the next script can not write to it.

thanks
 
Old 06-04-2005, 07:46 AM   #4
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
web servers tend to be restrictive in the use of cgi-bins and probably change the ownership of the new file to someone else than the ususal apache user. if u connect to the server with an ftp client u may see who's the owner of the file.
i dont know how to execute system programs in python. in perl u take
system 'myprog -arg'; (or exec)
i guess it's the same in python?
 
Old 06-04-2005, 11:39 AM   #5
ruwach
Member
 
Registered: Feb 2003
Location: sc
Distribution: mandrake 9
Posts: 73

Original Poster
Rep: Reputation: 15
yep a little different in python, but it worked
thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
really wierd problem mrchin Linux - Newbie 6 09-01-2004 04:33 PM
wierd sound problem noobtesting Mandriva 1 06-25-2004 10:27 AM
wierd problem Zerodark Slackware 2 10-31-2003 08:53 PM
wierd problem jt1020 Linux - General 2 05-19-2003 02:29 PM
wierd problem! jt1020 Linux - General 1 05-07-2003 11:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration