Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.