I run both Arch Linux and Windows 10 on my computer. When I cd onto the Windows partition (which uses NTFS), I notice that all files and folders have 777 file permissions. I want to run$ chmod 640 -R * from the partition's root directory to set all file and folder permissions to what they are normally on my linux partition, but I'm a little afraid it might mess up Windows. Is it safe to run this command? Same applies to my external USB hard drive.
Is it a good idea to set file permissions to 640 on windows partition?
permissions;windows;chmod
Permissions on NTFS file-systems are a mount option.  NTFS doesn't support unix style permissions, ntfs-3g has to fake it with NTFS ACLs.Use umask=027 on the mount command line (or in /etc/fstab) to get permissions of 640.See man mount.ntfs for more details and options.