Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 02-22-2010, 09:54 PM   #1
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
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.

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.


access, anonymous, folder, share, web

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
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 > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration