LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-04-2005, 05:23 PM   #1
Belize
Member
 
Registered: Jul 2003
Posts: 113

Rep: Reputation: 15
Regarding Linking and Permissions, please help


Hello all,
Heres the scenario: I have my software, linux isos, games and all that other stuff for installation in /home/kaloian/dsk. I want to share it on my website (Apache), so I made a symlink "ln -s /home/kaloian/dsk/ /var/www/htdocs/local"; I browse my website and the "dsk" folder apperas, but when I click on it it says 403 forbidden, obviously because it tries to fetch the files from /home/kaloian/dsk, which is outside the apache root folder.
I tried to change the permissions of the symlink to root but it didn't work as well.
Please give me ideas how I will be able to do that as I don't want to simply move the data to the website folder, but to keep it where it is, and just link it.
Thanks in advance!
Kaloyan

Last edited by Belize; 01-04-2005 at 05:25 PM.
 
Old 01-04-2005, 07:44 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
What permissions are set on the directory in your home folder? mainly under others. You may need to add execute, to allow cdiing into the directories.
 
Old 01-04-2005, 08:38 PM   #3
Belize
Member
 
Registered: Jul 2003
Posts: 113

Original Poster
Rep: Reputation: 15
in my home folder it was kaloian users before changing and now its root root.
drwxrw-r-- 6 kaloian users 4096 2004-08-16 12:27 dsk/
 
Old 01-04-2005, 08:45 PM   #4
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
In the parent directory type:

chmod o+x dsk/

now ls -l should produce
drwxrw-r-x 6 kaloian users 4096 2004-08-16 12:27 dsk/

Apache shouldn't be root, so changing the owner doesn't help. You just need to change the permissions to allow others access.
 
Old 01-05-2005, 03:35 PM   #5
Belize
Member
 
Registered: Jul 2003
Posts: 113

Original Poster
Rep: Reputation: 15
AH.....
yes
drwxrw-r-x 6 kaloian users 4096 2004-08-16 12:27 dsk/
this is exactly what the new value is but when I click on the symlink folder "dsk" it still says 403 Forbidden. I even chmod'ed -R recursively. This didnt work neither.
Any other ideas?

here is some info that might help:
Quote:
root@Cuba:/var/www/htdocs/local# ls -l
total 0
lrwxrwxrwx 1 root root 18 2005-01-06 00:30 dsk -> /home/kaloian/dsk//

kaloian@Cuba:~$ ls -l
total 12
drwxr-xr-x 5 kaloian users 4096 2005-01-04 08:12 backup/
drwxrw-r-x 6 kaloian users 4096 2004-08-16 12:27 dsk/
drwxrw-r-- 4 kaloian users 4096 2004-09-11 13:18 hdd/
 
Old 01-05-2005, 05:23 PM   #6
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
All I can think of is there is a security setting in Apache thats preventing this from working.

Try adding the FollowSymLinks to the options for apache, I haven't done any Aapche work for a while so I'm a little rusty on the options, check out Apache Core Features.
 
Old 01-06-2005, 04:43 AM   #7
Belize
Member
 
Registered: Jul 2003
Posts: 113

Original Poster
Rep: Reputation: 15
All I had to do is add FollowSymLinks in the .htaccess file in there.
Thanks alot for your support,
Have a happy new year
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 12:00 PM
Trouble: mounting, linking, permissions. crackery Linux - Newbie 2 01-28-2005 09:03 PM
Linking LS to 'L' uveraser Linux - General 2 05-20-2004 10:24 AM
getting a directory's permissions and creating a new one with the same permissions newbie1000101 Programming 1 04-10-2004 12:52 PM
C++ linking? ugenn Programming 5 05-14-2002 01:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:39 PM.

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