On Linux mint, an NTFS disk is mounted. Mount options uid=1000,gid=1000,umask=077,x-gvfs-show,x-gvfs-name=Disk%20D

The disk has such a folder /mnt/diskD/webserver/htdocs/website/files/css

  • Permissions: -rwx------ files, -drwx------ folders
  • Owner: me

When I try to open a file (for example, animations.css), however, I get an error

Could not open the file /mnt/diskD/webserver/htd...ite/files/css/animate.css. You do not need to open the file.

sudo nano animations.css - the same Access denied error

And strange behavior in different folders at different levels:

  • /mnt/diskD/webserver/htd…ite/files/ files open.
  • /mnt/diskD/webserver/htd…ite/files/node_modules files open.
  • /mnt/diskD/webserver/htd…ite/files/js files are NOT opened.
  • /mnt/diskD/webserver/htd…ite/files/css files are NOT open.

Screenshots: Error opening js Css open error

ls -l for

 dimas@linux:/mnt/diskD/webserver/htdocs/website/files/css$ ls -l 

issues -rwxr-x--- 1 dimas dimas 62525 Mar 6 2018 animate.css

For a higher level

 dimas@linux:/mnt/diskD/webserver/htdocs/website/files$ ls -l drwxr-x--- 1 dimas dimas 0 Mar 18 2018 ajax drwxr-x--- 1 dimas dimas 4096 Oct 25 22:37 css -rwxr-x--- 1 dimas dimas 479 Aug 6 22:06 package.json -rwxr-x--- 1 dimas dimas 9583 Aug 6 22:06 package-lock.json -rwxr-x--- 1 dimas dimas 3333 Mar 20 2018 send_form_email.php 

I tried a bunch of options for mounting and installing rights. Rights are. What is the problem I do not understand. Please help with advice.

UPD: screenshot specifically for the folder / css enter image description here

Important: files in adjacent project folders or in other projects on disk are fully accessible. I read, write down. Only specifically in this project with these two folders / css and / js. In these files I can only rename and delete. I can not read.

  • What does ls -l show? - andreymal
  • dimas@linux:/mnt/diskD/webserver/htdocs/website/files/css$ ls -l total 684 -rwxr-x--- 1 dimas dimas 62525 Mar 6 2018 animate.css - Dimas_X
  • And the directory / files are not compressed or unencrypted? I find it difficult to say how to see it in linux ... Shl: nano or cat from a regular user also work? - Fat-Zer

2 answers 2

Do you have the ntfs-3g driver installed?

In my fstab file, the mounting of Windows drives is written as follows:

 # Диски Windows /dev/sda2 /mnt/disk_c ntfs-3g defaults,locale=en_US.utf8 0 0 /dev/sda3 /mnt/disk_d ntfs-3g defaults,locale=en_US.utf8 0 0 

And everything works without problems.

  • Hi, thanks for the advice, yes the driver is worth it. The disk is mounted normally. Tried and your settings. Does not work. The problem is the same. I have access to all my files and folders on the disk. Only specifically with this project trouble. Well, I can rename these files in the .css folder, delete, and so on. There are rights, checked and through sudo ls -ail In the neighboring project folders, everything opens without problems. Only trouble with these two. Just broke my head already. - Dimas_X
  • Added a screenshot of the sudo ls -ail , sudo nano animate.css and whoami - Dimas_X 5:41 pm

In umask=077 missed? zero, do you want? : umask=0077

Most likely still need to add ,dmask=0077,fmask=0077 - try.

...

The only thing I know is that in ntfs these folders can be encrypted. Only open in Windows with a specific user who has encrypted. It is necessary in Windows under this user to disable encryption of these folders. I have this folder at home:

 alex423@linux-8zsb:/ntfs/Users/Alex/секрет> sudo cat новый\ пароль [sudo] пароль для root: cat: 'новый пароль': Отказано в доступе 
  • Hi, thank you. I tried too. For everyone already tried. Rights as it is. Mounted drive is normal, there is access to different projects, even adjacent folders and files specifically for this project. Only trouble with the folder files / css and / js. They do not want to open up in any way. No rights and all. Although there are rights. - Dimas_X
  • Disable encryption in Windows. cm . Answer - AlexGlebe