Hello Mr. Saifi,

Thanks a lot. It worked after doing "setenforce 0".

Can you please explain me what was the reason behind sshfs not working
earlier. Below is the logs of audit.log and auto.master

type=AVC_PATH msg=audit(1239676549.201:1256):  path="/var/www/html/cluster"
type=AVC msg=audit(1239676549.201:1257): avc:  denied  { getattr } for 
pid=14182 comm="httpd" name="cluster" dev=dm-0 ino=1936418
scontext=system_u:system_r:httpd_t:s0
tcontext=root:object_r:user_home_t:s0 tclass=dir
type=SYSCALL msg=audit(1239676549.201:1257): arch=40000003 syscall=196
success=no exit=-13 a0=81e11050 a1=bffb941c a2=280ff4 a3=2008171 items=0
ppid=2291 pid=14182 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48
egid=48 sgid=48 fsgid=48 tty=(none) comm="httpd" exe="/usr/sbin/httpd"
subj=system_u:system_r:httpd_t:s0 key=(null)


#
# $Id: auto.master,v 1.4 2005/01/04 14:36:54 raven Exp $
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#
/misc   /etc/auto.misc
/net    -hosts
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
+auto.master

regards,
Dhiraj Chawla

There was no auto.sshfs on the system.

> On Wed, 15 Apr 2009, Dhiraj Chawla wrote:
>
>>
>> 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.
>>
>
> Please try first
> # setenforce 0
>
> then restart sshfs and try to access
>
> Could you share the contents of the file
>  . /var/log/audit.log
>  . /etc/auto.master
>  . /etc/auto.sshfs
>
> Let me know how it goes.
>
>
> thanks
> Saifi.
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Reply via email to