LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-31-2008, 07:19 PM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Rep: Reputation: 60
Symbolic Link


I have setup a program called zoneminder and it uses apache for the gui and am having a permission issue. I log in as root and need to have a symbolic link from /var/www/html/zm/events to /home/zm/events. When I do that, root has permission to the symbolic link. I need to have apache to have ownership of the symbolic link. Whenever I attempt to access

PHP Code:
http://localhost/zm/events 
I can see in the /var/log/httpd/error.log

PHP Code:
 "df 'events 'permission denied' " 
and

PHP Code:
[error] [client 10.30.57.7 Symbolic link not allowed or link target not accessible: /home/bpshady2/zm/events 
or something like that. How can I give apache user and group permission to that symbolic link?

I have read


http://httpd.apache.org/docs/1.3/mod/core.html#options

but am having a little trouble with it.

Last edited by metallica1973; 08-31-2008 at 08:27 PM.
 
Old 08-31-2008, 08:53 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I'm assuming that you've already turned on the FollowSymLinks option since the error is about the link target. It looks like the apache user/group don't have permissions for the /home/bpshady2 hierarchy. Off the top of my head, you can either:

- Change the group ownership of /home/bpshady2 and the required directories and files under it to apache;
- Add permissions for "other" users to /home/bpshady2, /home/bpshady2/zm & /home/bpshady2/zm/events and the required files; or
- Move the files out of /home/bpshady2 to a shared area and link to that instead (from /home/bpshady2 as well if required).

Will that do what you need?
 
Old 08-31-2008, 09:04 PM   #3
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
Quote:
- Change the group ownership of /home/bpshady2 and the required directories and files under it to apache;
Can you give me an example?
 
Old 08-31-2008, 09:33 PM   #4
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
It worked, many thanks. Just digging deeper in to Linux.
 
Old 08-31-2008, 11:13 PM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Quote:
Originally Posted by metallica1973 View Post
Can you give me an example?
Sorry - I missed your post, but it's good news that you've got it working.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
symbolic link not allowed or link target not accessible paullaubscher Linux - Newbie 4 03-10-2010 06:47 AM
symbolic link manolakis Linux - Newbie 1 05-08-2008 07:40 PM
How to create symbolic link to html file and avoid page link problem? haxpor Linux - General 2 01-29-2008 07:40 AM
symbolic link ilnli Slackware 6 01-04-2005 05:05 PM
Symbolic link. bulzbb Linux - General 8 03-19-2004 04:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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