Can't change ownership of file, even using sudo
Hello,
I have an external USB drive on which I created a exFAT partition. I mounted it at /media/filestogo and after chmod'ing that directory to 777. When I try to copy files to that directory in Nautilus, I get the error that I do not have permission. So, I tried to chown the directory /media/filestogo to user mary. However I get an error: Code:
mary@mythbox:~]$ ls -la /media/filestogo Thanks, Mary |
I'd suspect exFAT does not support UNIX style permissions and ownership. Perhaps you can mount it as user mary, then ownership should change, methinks.
|
Can't change ownership of file, even using sudo
What options did you use in your mount command?
|
Quote:
|
Just as an aside, Emerson is correct. Non-*nix filesystems do not recognize/support Linux permissions.
|
I haven't used non-nix filesystems for so long (15+ years) I really wasn't sure what is the best way to solve this and I had nothing to try it on.
|
It's something I learned along the way, but so long ago I can't cite a source.
|
FAT/exFAT and NTFS (Microsoft) file systems don't support Linux user and group permissions. These are essentially faked by the kernel when mounted.
For more info refer Code:
man mount.exfat Code:
man mount.ntfs |
Interesting - I never knew about mount.exfat. This may
explain similar errors I got in the past. I found the thread here via a google search. Would be great if the whole Linux stack would be more "clever"; would help avoid me having to google, with a better "live" documentation system as-is. |
'mount' command calls 'mount.<filesystem>', you will be using mount.exfat when you mount exfat filesystem.
|
All times are GMT -5. The time now is 10:42 AM. |