2

I have mounted a usb drive on my computer. I want to change the owner to myself so that I can have an easier time writing/reading and allowing other programs to do the same. However, when I run this code:

sudo chown <username>:<username> -R <Drive Name>

It returns this:

chown: changing ownership of '<Drive Name>': Operation not permitted

I read on This Forum that I should run sudo chattr -i file

However that returns this:

chattr: Inappropriate ioctl for device while reading flags on <Device Name>

Where do I go from here?

5

This problem is typical for partitions with a Microsoft file system, NTFS, FAT32 and exFAT. The ownership and permissions are set when mounting and cannot be modified without unmounting and mounting again, this time with new settings.

See this link with more details,

How do I use 'chmod' on an NTFS (or FAT32) partition?

1
  • @MartinEldredge, You are welcome, I'm glad I could help :-)
    – sudodus
    Jan 21 '19 at 18:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.