LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-22-2010, 09:54 PM   #1
ngohieutp
LQ Newbie
 
Registered: Dec 2006
Posts: 10

Rep: Reputation: 0
How to allow guest access a folder on linux ?


Hi all. I have Apache installed on CentOS 4.5.
My website have to play music on page and i have to show the file path.
Eg : my website is in /var/lib/apache/webapp/mywebsite
and my music folder is in : /music/myfile.wav
and i want to play music on this /music folder and allow guest to download file.
How can i do this ? Help me please
 
Old 02-23-2010, 12:02 AM   #2
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
easiest way is to simply add a symlink to your webroot pointing at your music folder.

Code:
cd /var/lib/apache/webapp/mywebsite
ln -sv /music
and then http://mywebsite/music will be where your music lives.

of course, the apache user (probably "www-data" if you've got a stock install) will need rx permissions on the music folder and at least r permissions on the music files.
 
  


Reply

Tags
access, anonymous, folder, share, web



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
LXer: Install Guest additions and run fullscreen mode on VirtualBox Guest OS | Linux LXer Syndicated Linux News 0 01-17-2010 05:30 PM
How do you see a Host Only folder from a Linux guest ? OralDeckard Linux - Networking 3 02-04-2009 08:04 AM
VirtualBox Raw Access, Windows Host, Linux Guest Guitarist88 Linux - Newbie 2 11-14-2008 04:41 PM
Folder Max Size and Limiting SSH access to home folder. Mefistofeles Linux - General 4 11-26-2005 02:09 PM
how to setup folder permissions for guest user with samba? wza Linux - Networking 0 07-08-2004 09:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:08 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