Hi, I currently have a problem with a ntfs drive I use on which I need to mount with the permissions mount option so I can chown some folder on it to give access to my apache webserver.
I use udevil with devmon for mounting and I adjusted the udevil.conf appropriately to add permissions to the allowed_options as well as to the default_options_ntfs. I enabled logging in udevil and this is the command ran to mount my drive:
$this->bbcode_second_pass_code('', '@04 Apr 2013 23:20:08::root$ /usr/bin/udevil --mount /dev/sdb2 --mount-options noexec,nosuid,nodev,noatime
ROOT: /bin/mount -t ntfs -o nosuid,noexec,nodev,noatime,permissions,utf8,noexec,nosuid,nodev,noatime /dev/sdb2 /media/flex
Mounted /dev/sdb2 at /media/flex
')
I guess the fact that some options are doubled here is that some comes from the devmon default?
However after the drive is mounted I still can't use chown on any files or folder present on the drive...
when I just run mount to display my mounted drive, here is what it lists :
$this->bbcode_second_pass_code('', '/dev/sdb2 on /media/flex type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)')
There is also a UserMapping file present in the usual .NTFS-3G folder containing the SID mapping to uid and gid for my windows machine. but it seems not to work.
I tried running ntfs-3g with the permissions options directly too, but once the drive is mounted I still can't chown anything on it.
Can someone pinpoint what I'm doing wrong? So I can mount my drive with linux permissions so that my apache server can access file on it while running as the http user.
Thanks,
