Fedora Linux Support Community & Resources Center
  #1  
Old 18th July 2012, 10:42 AM
broadstairs Offline
Registered User
 
Join Date: Oct 2011
Posts: 300
linuxfirefox
Help please with Apache cgi program accessing smb share

Having had some problems with a perl cgi program accessing data on a mounted share on F17 (did not happen on F16) I have found that the cgi program cannot access the data on the mounted share if Apache starts before the share is mounted, so any time I want to run this cgi program from my browser I have to restart httpd. The server starts on boot of F17. A minor annoyance as this program only runs on my private server for me and no one else. However I would like to know why this is now? Does anyone have any ideas please, or any ideas on how to change this?

Stuart
Reply With Quote
  #2  
Old 18th July 2012, 11:39 AM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,769
linuxfirefox
Re: Help please with Apache cgi program accessing smb share

Depends on how it is mounted.

A network mount must be completed after the network is started- Apache must be started after the network is started.

Unfortunately, there is no control to have apache wait until network mounts are completed, so apache starts as soon as the network is ready.

The problem is systemd.
Reply With Quote
  #3  
Old 18th July 2012, 12:11 PM
broadstairs Offline
Registered User
 
Join Date: Oct 2011
Posts: 300
linuxfirefox
Re: Help please with Apache cgi program accessing smb share

Yes I realise that is how it works now. My point is that on F16 I used to be able to mount the network share via SMB4K after boot (and Apache starting) and it could access the data fine. Bear in mind this is a perl program running as a cgi-bin program accessing data on this network share it is not Apache serving pages directly from this share.

It is also possible to run the perl program from the commandline and it works fine even when as a cgi program it fails. It is complaining that either the file/directory does not exist (it does) or does not have write permission (it does) the share is mounted with 0777 access (not a security problem as the server is on a private lan only).

As I said this is a change from F16 to F17 and I was hoping to find a way of getting back to the way F16 worked!

Stuart
Reply With Quote
  #4  
Old 19th July 2012, 12:36 AM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,769
linuxfirefox
Re: Help please with Apache cgi program accessing smb share

I assume you have disabled SELinux.

One problem NTFS file systems/CIFS has is the lack of security label support.
Reply With Quote
  #5  
Old 19th July 2012, 07:42 AM
broadstairs Offline
Registered User
 
Join Date: Oct 2011
Posts: 300
linuxfirefox
Re: Help please with Apache cgi program accessing smb share

Yes SELinux is turned off.

Stuart
Reply With Quote
  #6  
Old 19th July 2012, 02:59 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,769
linuxfirefox
Re: Help please with Apache cgi program accessing smb share

Hm.

Check every element of the path to and through the mount point.

It sounds like some intermediate directory has the wrong permissions.
Reply With Quote
  #7  
Old 19th July 2012, 05:49 PM
broadstairs Offline
Registered User
 
Join Date: Oct 2011
Posts: 300
linuxfirefox
Re: Help please with Apache cgi program accessing smb share

Yup done that and it still happens when all of the directories are 0777.

Stuart
Reply With Quote
Reply

Tags
accessing, apache, cgi, program, share, smb

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing a network share. 2 Questions ShawnAcker Servers & Networking 0 28th January 2010 06:57 PM
Accessing a Samba share on Fedora 9 rovas Servers & Networking 6 22nd August 2008 02:55 PM
accessing a win XP share with FC3 JB05 Servers & Networking 7 15th December 2005 08:14 PM
SMB and Windows Share Accessing Files Prem0 Servers & Networking 1 29th July 2004 11:31 PM
Accessing Windows Share Problem jsvoyager Servers & Networking 0 16th July 2004 05:48 PM


Current GMT-time: 15:29 (Tuesday, 22-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat