LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-03-2008, 01:16 AM   #1
RMLinux
Member
 
Registered: Jul 2006
Posts: 260

Rep: Reputation: 37
What is the best website permission?


Hi Keen Buddies,

what is the right permission and ownership for your website?

I want to create a website that can accept download files?

thx.

Last edited by RMLinux; 12-03-2008 at 01:45 AM.
 
Old 12-03-2008, 02:22 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Your question sounds confused. Possibly you are trying to achieve something by inefficient means?

Presumably, you want to allow users to download files from the website and/or to upload files to the website? This is usually handled in the dynamic content of the page itself.

You sound like you are trying to use unix permissions to restrict this, as if you had user accounts to the site - a bit like LQ?
 
Old 12-04-2008, 02:02 AM   #3
RMLinux
Member
 
Registered: Jul 2006
Posts: 260

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by Simon Bridge View Post
Your question sounds confused. Possibly you are trying to achieve something by inefficient means?

Presumably, you want to allow users to download files from the website and/or to upload files to the website? This is usually handled in the dynamic content of the page itself.

You sound like you are trying to use unix permissions to restrict this, as if you had user accounts to the site - a bit like LQ?
thanks to your reply.

lets say I want them to uploads files to my website? what am I going to do?
 
Old 12-04-2008, 06:08 PM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
There are a number af different ways to do this - are you looking for something like gnomelook.org? Or something more private?

Have a look at php.
http://www.tizag.com/phpT/fileupload.php

... for eg. A web form with a file upload button:
http://www.htmlgoodies.com/beyond/we...le.php/3548746

There are also methods for javascript,etc... if you want to use dynamic content on a web page you should learn one of these methods.

If it is just a bunch of mates wanting a central place to keep files... then consider something like an sftp server instead.
 
Old 12-04-2008, 06:46 PM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
There are two separate issues. The first thing is the permissions at file system level in the system where the server is running.

A server (let's say apache) runs usually with a given userid. So, the permissions at file system level (those that you set with chmod) are only relevant for the apache user. If the user "apache" has +r on a given file, it will be able to serve. If the user "apache" has +w permissions on a file, it will be able to write into it. If the user "apache" has +x on a dir, it will be able to read and serve the contents of that dir (provided that the files inside that dir are readable as well.

However, how these permissions are handled by your served and presented to the world outside of the server is a completely different matter. The permissions at file system level are hard-requirements so apache can handle the files if needed. But then the scripts, interfaces, the server config and other stuff is what will decide if a given user, ip or whatever has the right to write on a given resource.

Ultimately it all depends on what exactly you are talking about. If you want frontends to upload and download files, try hotscripts.com and search around there. There are thousands of scripts in php, javascript and lots of other languages and most of them comes with installation instructions.
 
  


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
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 05:50 AM
viewing an externally hosted website from within a given website andrews-mark Linux - Server 6 10-07-2008 01:11 AM
group permission the sticky bit permission comes in capital 'S' pkishorenayak Linux - Newbie 1 04-11-2008 06:04 PM
'permission denied" inspite of right permission flags on network drive anirudhvij Linux - Enterprise 8 05-22-2007 06:57 AM


All times are GMT -5. The time now is 08:16 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration