Hi All,

I am Dhiraj Chawla a student of IIIT-Hyderabad.

I have system which contains a set of images, which I want to display via
HTTP server running on another system. For this I am using sshfs to mount
the directory on system1 containing the images to system2 which is running
the HTTP server.

The system running HTTP server is Fedora8. On this system I had installed
fuse 2.6.5 and sshfs 1.7. I am mounting the images-directory of system1 to
/var/www/html/images.

The mounting part works fine and I am able to list and view the files via
shell. But this folder is not accessible via http server. when I open the
browser and type http://system2-ip/images, it shows permission denied.

Also when i checked the /var/log/httpd/error_log, it gives error with no
13 and permission denied.

When check /var/log/messages, it shows that selinux does not allow httpd
to access /var/www/html/images.

Below are the error messages:

/var/log/httpd/error_log

[Sun Mar 29 16:56:37 2009] [error] [client 172.17.8.80] (13)Permission
denied: access to
/images/chi/2005-08-22/ap_war_gan_mal_0072_aug05_0_chi_2005-08-22_c_37.jpg
denied
[Sun Mar 29 16:57:38 2009] [error] [client 172.17.8.80] (13)Permission
denied: access to
/images/chi/2005-08-22/ap_war_gan_mal_0072_aug05_0_chi_2005-08-22_c_37.jpg
denied

Apr 14 21:04:18 localhost setroubleshoot:      SELinux is preventing the
/usr/sbin/httpd from using potentially mislabeled files
/var/www/html/cluster/cachenode2 (fusefs_t).      For complete SELinux
messages. run sealert -l 3fe6f7c9-a5f0-4b53-ac2a-f665848bdd77

/var/log/messages

Apr 14 21:04:18 localhost setroubleshoot:      SELinux is preventing the
/usr/sbin/httpd from using potentially mislabeled files
/var/www/html/images (fusefs_t).      For complete SELinux messages. run
sealert -l 3fe6f7c9-a5f0-4b53-ac2a-f665848bdd77

while I searched on the net, I found that it has something to do with
fuse, and that it does not allow other services or users to access the
mount in default case. The solution that was given was to set
"user_allow_other" in /etc/fuse.conf. But in FC8 and FC9 there is no
fuse.conf.

I tried installing fuse and sshfs on fc9 also and got the same problem. I
also tried disabling firewall and selinux but even that did not help. Now
I am stuck with no solution.

I anybody has faced this problem before or has solution to this problem,
please guide me.

Hoping for a positive reply,

regards,
Dhiraj Chawla
M-Tech CSE
IIT-Hyderabad.

Reply via email to