I have a new Fedora install on a machine with two hard drives. The second hard drive (ntfs) is just data and the permissions are all set to rw, but they are all owned by root and I’ve not been able to change that.
ls -l /mnt/0418D5BB18D5AC44
drwxrwxrwx. 1 root root 12288 Oct 12 15:44 0418D5BB18D5AC44
I’ve set fstab to mount it automatically. Not 100% I’ve done this correctly, so it might be part of the problem.
/dev/disk/by-uuid/0418D5BB18D5AC44 /mnt/0418D5BB18D5AC44 auto nosuid,nodev,nofail,x-gvfs-show 0 0
I don’t know whether I set fstab correctly, so I tried manually remounting the drive before I tried to change ownership:
sudo mount -o rw,remount /mnt/0418D5BB18D5AC44/
sudo chown -R rick:users /mnt/0418D5BB18D5AC44/
However all permissions are still set to root:root
I have two drives mounted on F41 beta as NTFS; both drives have files owned by root, but I was able to rsync as a normal user and can FTP on the drives all no problem. I don’t think the files owned as root hinders anything.
mount:
/dev/sdc2 on /var/ftp/nas2 type fuseblk (rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
/dev/sdb1 on /var/ftp/nas1 type fuseblk (rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
No particular reason why one only has windows_names; saw it somewhere and it sounded good to try, forgot to add or remove it when I added the 2nd drive, and stuff just works still
I’m thinking fuse does permissions behind-the-scenes or that it doesn’t apply Windows/NTFS to Linux permissions and allows the access free-reign. If you’re serious about using that drive on Linux and want Linux-style permissions handling, you’ll likely want a different filesystem.
but I’m still unable to write to the drive. When I try to use chmod to change permissions I get the message
chmod: changing permissions of [file] Read-only file system
I previously had windows installed on the laptop and the data was driver was set up and all the data put on there with windows. I don’t know whether this is the issue - I was under the impression that NTFS was compatible with linux.
It looks like you are correct about ownership. I’ve changed ownership to me and I still can’t write to the drive. Chmod returns an error about a “read-only file system”.
I’m not familiar with Fuse. Is it an alternative to ntfs-3g?