I have an external hard drive, which has a ntfs file system.
From output of sudo fdisk -l:
Disk /dev/sdb: 931.5 GiB, 1000170586112 bytes, 1953458176 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x00023f15 Device Boot Start End Sectors Size Id Type /dev/sdb1 2048 1953458175 1953456128 931.5G 7 HPFS/NTFS/exFAT From output of mount:
/dev/sdb1 on /media/t/My Passport type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2) If I set some permission bits on a directory in the file system , for example to be executable and readable and writable only by root, will the permission bits be respected when I plug the external hard drive to a Windows system?
I would like to find a way to restrict access to a directory on my external hard drive from any OS (in particular, Linux and Windows). Also see https://askubuntu.com/a/104544/1471
I just found that chmod doesn't work on the external hard drive, and I wonder why and how I can do about it:
$ ls -ld temp/ drwxrwxrwx 1 t t 144 May 27 18:31 temp/ $ sudo chmod o-rwx temp $ ls -ld temp/ drwxrwxrwx 1 t t 144 May 27 18:31 temp/ Thanks.
mount. Could you be more specific?mount.ntfs-3g(8)man page, "Description" section, "Access Handling and Security" subsection.