FAQ SearchLogin
Tuxera Home
View unanswered posts | View active topics It is currently Sat May 15, 2021 05:18



Post new topic Reply to topic  [ 6 posts ] 
ntfs3g-2010.3.6 : apache2 can't access data any longer 
Author Message

Joined: Thu Jul 29, 2010 09:55
Posts: 4
Post ntfs3g-2010.3.6 : apache2 can't access data any longer
AT an almost stable Gentoo system I upgraded ntfs3g from ntfs3g-2010.1.16 to ntfs3g-2010.3.6. After that my local apache2 (2.2.15) does no longer allow me to access a directory stored on a NTFS drive mounted with ntfs3g. With the old version however I've no problems.

My system :

n22 ~ # uname -a
Linux n22 2.6.34.1 #4 SMP Fri Jul 23 11:41:58 CEST 2010 i686 Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz GenuineIntel GNU/Linux

n22 ~ # mount | grep fuse
/dev/sda2 on /mnt/E type fuseblk (rw,noexec,nosuid,nodev,noatime,allow_other,blksize=4096)

section from /etc/apache2/vhosts.d/default_vhost.include :

Alias /fotos /mnt/E/my/fotos/
<Directory "/mnt/E/my/fotos/">
Options Indexes

Order deny,allow
Deny from all
Allow from 127.0.0.1 192.168.0.0/16

AuthType Basic
AuthName "Toralfs Fotos"
AuthBasicProvider file
AuthUserFile /var/www/localhost/htdocs/access_to_toralfs_fotos
Require valid-user

Satisfy Any
</Directory>


Thu Jul 29, 2010 10:01
Profile

Joined: Thu Jul 29, 2010 09:55
Posts: 4
Post ntfs3g-2010.3.6 doesn't allow apache to access a NTFS dir
As described here http://forums.gentoo.org/viewtopic-p-63 ... ml#6367379 the new version breaks the behaviour of my apache wrt to access NTFS directories.


Thu Jul 29, 2010 10:41
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: ntfs3g-2010.3.6 : apache2 can't access data any longer
Hi,

Quote:
n22 ~ # mount | grep fuse
/dev/sda2 on /mnt/E type fuseblk (rw,noexec,nosuid,nodev,noatime,allow_other,blksize=4096)

section from /etc/apache2/vhosts.d/default_vhost.include :

Alias /fotos /mnt/E/my/fotos/
<Directory "/mnt/E/my/fotos/">

What is your mount command or your /etc/fstab entry ?
Code:
grep sda2 /etc/fstab

What are the protections associated with the needed files and directories ?
Code:
ls -ld /mnt/E
ls -ld /mnt/E/my
ls -ld /mnt/E/my/fotos
ls -l /mnt/E/my/fotos/<some file>


Regards

Jean-Pierre


Thu Jul 29, 2010 13:39
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: ntfs3g-2010.3.6 : apache2 can't access data any longer
Hi again,

Ok, I see you fstab options in the referenced forum :
Quote:
/dev/sda2 /mnt/E ntfs-3g auto,user,noatime,uid=tfoerste,gid=users,umask=0027,locale=de_DE.utf8,noexec

So you have forced your files not readable by users other than tfoerste or belonging to group users. So denying access to Apache.

The reasonable fix is to change umask=0027 by umask=0022, so allowing read access to anybody.

Regards

Jean-Pierre


Thu Jul 29, 2010 13:54
Profile

Joined: Thu Jul 29, 2010 09:55
Posts: 4
Post Re: ntfs3g-2010.3.6 : apache2 can't access data any longer
Right, changing from 0027 to 0022 solved it - now I'm wondering why it worked before - probably b/c the older ntfs3g version doesn't had this mount option on by default : "default_permissions" ? Was that a bug or is the new feature an improvement ?


Thu Jul 29, 2010 15:05
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: ntfs3g-2010.3.6 : apache2 can't access data any longer
Hi,

Quote:
Right, changing from 0027 to 0022 solved it - now I'm wondering why it worked before - probably b/c the older ntfs3g version doesn't had this mount option on by default : "default_permissions" ?

Yes. This is not the default, but a consequence of the options you selected.
Quote:
Was that a bug or is the new feature an improvement ?

I expect the umask option to be meaningful when stated. When it is not, I tend to consider there is a weird behavior... and yes, there has been a change.

Regards

Jean-Pierre


Thu Jul 29, 2010 15:49
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Original forum style by Vjacheslav Trushkin.