By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,957 Members | 1,960 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,957 IT Pros & Developers. It's quick & easy.

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

P: 2

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,

Nov 19 '07 #1
Share this Question
Share on Google+
1 Reply

Expert 5K+
P: 6,596
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.