468,287 Members | 1,928 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,287 developers. It's quick & easy.

Web-based file upload -- who grants/denies permissions to whom?

Hello,

After all this time, Linux file permissions still confuse me at times.

I have a Python web-based application with an file (images) upload module. The application is running on two remote servers and a local server on my development network.

The upload module works just fine when I'm uploading to my remote servers. But when I try to upload to my development server, I get a permission error.

What I don't understand is who is granting/denying permission to whom?

Let's say:

-- the file to be downloaded is owned by dddd and group dddd
-- others in dddd have read permission but not write permission
-- the directory the target directory for download is tttt and group tttt

Question 1: Should I be looking at my Python upload code or my permission scheme to allow download to my development server?

Question 2: If Python upload code, what should the code look like?

Question 3: If permission scheme, how should I change it to permit download to my development server?

Question 4: From a security perspective, what is best practice for a) assigning file and directory permissions in web-based applications; b) crafting the upload module?

Many thanks,

Lloyd
Nov 19 '07 #1
1 1690
bartonc
6,596 Expert 4TB
Hiya, Lloyd:

Your question may be more suited for the Linux / Unix / BSD Forum. There are, however, a few *x users on the Python Forum, so I'll keep your question here. I've copied your question over to this thread, for your convenience.

Good luck and thanks for joining TheScripts.
Nov 19 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

10 posts views Thread by Jeremy Ames | last post: by
4 posts views Thread by James Wong | last post: by
reply views Thread by Erick Lopez | last post: by
5 posts views Thread by Michael Herman \(Parallelspace\) | last post: by
7 posts views Thread by Jonas | last post: by
reply views Thread by NPC403 | last post: by
2 posts views Thread by MrBee | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.