You are not logged in.
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:
@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/flexI 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 :
/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,
PS: I posted that on arch linux arm forum but got no answers... and got redirected here
Offline
i just use
ntfs-3g /dev/sdaX /mnt
and the drive is mounted with 777.
Offline
I still can't use chown on any files or folder present on the drive...
Why would you think you could chown files and folders on a filesystem that doesn't support UNIX file permissions?
Read the wiki: https://wiki.archlinux.org/index.php/Nt … ermissions
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline