Issue 446 in s3fs: Apache (13)Permission denied issue - 403

142 views
Skip to first unread message

s3...@googlecode.com

unread,
Dec 10, 2014, 7:06:21 PM12/10/14
to s3fs-...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 446 by amitbis...@gmail.com: Apache (13)Permission denied issue -
403
https://code.google.com/p/s3fs/issues/detail?id=446

Hi Guys,
I'm aware that it's a known issue and I've read about 10 issues and still
not able to fix this after 2 days of working on it.

0. configurations:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:*",
"Resource": "*"
}
]
}

chmod 600 ~/.passwd-s3fs
/etc/fstab:

s3fs#xxxx /s3 fuse netdev,default_acl=public
read,use_cache=/tmp/cache,use_rrs=1,allow_other 0 0

1.Mount works OK:
s3fs -o use_cache=/tmp/cache -o allow_other,uid=33,gid=33 -o
default_acl="public-read" setsdrive /s3
fuse: warning: library too old, some operations may not not work

note- tried others way to mount also (command is mention later)

2. r/w files works fine
mkdir /s3/test
ll
total 0
drwxrwxrwx. 1 33 tape 0 Dec 8 14:58 server
drwxrwxr-x. 1 33 tape 0 Dec 10 18:50 test

3. apache configurations:
#mySer server alias
Alias /pic/ "/s3/server/pics/"
#Alias /pic/ "/tmp/cache/xxx/server/pics/"
<Directory "/usr/server/pics">
Options FollowSymLinks
AllowOverride None
</Directory>

4. The Issue:
when trying to get any file from that folder "pics", I get 403
(13)Permission denied: access to /pic/pic256.jpg denied


all files has 777/755 permissions but I still get http 403 over "/s3"
tried working with the cache folder and got the same results
tried changing the root folders permissions to 777




Version of s3fs being used (s3fs 1.74):

Version of fuse being used (2.8.3):

System information (Linux xxxx.eu-west-1.compute.internal
2.6.32-358.14.1.el6.x86_64 #1 SMP Mon Jun 17 15:54:20 EDT 2013 x86_64
x86_64 x86_64 GNU/Linux):

Distro (cat /etc/issue):
Red Hat Enterprise Linux Server release 6.4 (Santiago)
Kernel \r on an \m

s3fs command line used (if applicable):
tried all 3:
1. s3fs -o use_cache=/tmp/cache -o allow_other -o default_acl="public-read"
xxx /s3
2. s3fs -o use_cache=/tmp/cache -o allow_other,uid=33,gid=33 -o
default_acl="public-read" xxx /s3
3. s3fs -o
default_acl=public-read,use_cache=/tmp/cache,use_rrs=1,allow_other xxx /s3
/etc/fstab entry (if applicable):

s3fs syslog messages (grep s3fs /var/log/syslog):
not exist


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

s3...@googlecode.com

unread,
Dec 11, 2014, 1:24:28 PM12/11/14
to s3fs-...@googlegroups.com

Comment #1 on issue 446 by amitbis...@gmail.com: Apache (13)Permission
after 3 days i've found the solution:

Alias /pic/ "/s3/server/pics/"
<Directory "/s3/">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Allow from all
</Directory>

only now it's working

s3...@googlecode.com

unread,
Dec 15, 2014, 7:06:39 AM12/15/14
to s3fs-...@googlegroups.com

Comment #2 on issue 446 by amitbis...@gmail.com: Apache (13)Permission
Plus selinux must be disabled

s3...@googlecode.com

unread,
Feb 7, 2015, 12:37:56 PM2/7/15
to s3fs-...@googlegroups.com
Updates:
Status: Done

Comment #3 on issue 446 by ggta...@gmail.com: Apache (13)Permission denied
Hi,

I'm sorry for replying late.
Do you have been had any problem yet?
(It seems that you can solve this problem.)

If you do not solve, you can see s3fs's log by "-f" or "-d" option with
manually running.

I'm going to close this issue.
So s3fs project have been moved to
Github(https://github.com/s3fs-fuse/s3fs-fuse).
If you have any problem about s3fs, please post new issue on Github.

Thanks in advance for your help.
Reply all
Reply to author
Forward
0 new messages