O problema é que você usa o comando específico do POSIX ( chmod
) para alterar o sistema de arquivos não compatível com POSIX (NTFS). O comando chown
também não funciona nesses sistemas de arquivos. Para alterar permissões em compartilhamentos NTFS, você deve usar mount
options .
De man mount.ntfs
:
OPTIONS Below is a summary of the options that ntfs-3g accepts. uid=value and gid=value Set the owner and the group of files and directories. The values are numerical. The defaults are the uid and gid of the current process. ... permissions Set standard permissions on created files and use standard access control. This option is set by default when a user map‐ ping file is present.
Então, ao invés de usar
chmod 766 /mnt/Format
use
mount -o uid=UID,permissions,remount /mnt/Format
Veja man mount.ntfs
para mais ajuda. Há uma boa seção EXEMPLOS que ajuda a entender como a montagem funciona.