** Information type changed from Public Security to Public
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2117083
Title:
Adding files to Windows standard user folders is impossible with NTFS3
kernel driver
Status in Linux:
New
Status in linux package in Ubuntu:
New
Bug description:
Windows standard user folders are flagged with attribute READONLY:
C:\Users>Attrib Praxis\* /D
R C:\Users\Praxis\3D Objects
C:\Users\Praxis\Anwendungsdaten
H C:\Users\Praxis\AppData
R C:\Users\Praxis\Contacts
SH I C:\Users\Praxis\Cookies
R C:\Users\Praxis\Desktop
R C:\Users\Praxis\Documents
R C:\Users\Praxis\Downloads
I C:\Users\Praxis\Druckumgebung
R C:\Users\Praxis\Eigene Dateien
R C:\Users\Praxis\Favorites
R C:\Users\Praxis\Links
C:\Users\Praxis\Lokale Einstellungen
R C:\Users\Praxis\Music
I C:\Users\Praxis\Netzwerkumgebung
A H I C:\Users\Praxis\NTUSER.DAT
A SH C:\Users\Praxis\ntuser.dat.LOG1
A SH C:\Users\Praxis\ntuser.dat.LOG2
A SH
C:\Users\Praxis\NTUSER.DAT{53b39e88-18c4-11ea-a811-000d3aa4692b}.TM.blf
A SH
C:\Users\Praxis\NTUSER.DAT{53b39e88-18c4-11ea-a811-000d3aa4692b}.TMContainer00000000000000000001.regtrans-ms
A SH
C:\Users\Praxis\NTUSER.DAT{53b39e88-18c4-11ea-a811-000d3aa4692b}.TMContainer00000000000000000002.regtrans-ms
SH C:\Users\Praxis\ntuser.ini
R C:\Users\Praxis\OneDrive
R C:\Users\Praxis\Pictures
R C:\Users\Praxis\Recent
C:\Users\Praxis\Roaming
R C:\Users\Praxis\Saved Games
R C:\Users\Praxis\Searches
R I C:\Users\Praxis\SendTo
R C:\Users\Praxis\Startmenü
R C:\Users\Praxis\Videos
I C:\Users\Praxis\Vorlagen
The NTFS3 driver withdraws the write right from such files with the READONLY
attribute:
$ ls -al /mnt/Daten/Users/Praxis/
insgesamt 16
drwxrwxr-x 1 praxis praxis 8192 Jul 13 15:51 .
drwxrwxr-x 1 praxis praxis 0 Jul 9 21:37 ..
dr-xr-xr-x 1 praxis praxis 0 Jul 9 00:39 '3D Objects'
dr-xr-xr-x 1 praxis praxis 0 Jul 9 00:39 Contacts
dr-xr-xr-x 1 praxis praxis 0 Jul 9 00:39 Desktop
dr-xr-xr-x 1 praxis praxis 4096 Jul 9 00:39 Documents
dr-xr-xr-x 1 praxis praxis 0 Jul 9 00:39 Downloads
dr-xr-xr-x 1 praxis praxis 0 Jul 9 00:39 Favorites
dr-xr-xr-x 1 praxis praxis 0 Jul 9 00:39 Links
dr-xr-xr-x 1 praxis praxis 0 Jul 9 00:39 Music
dr-xr-xr-x 1 praxis praxis 0 Jul 9 00:41 OneDrive
dr-xr-xr-x 1 praxis praxis 0 Jul 9 00:40 Pictures
drwxrwxr-x 1 praxis praxis 0 Mär 5 13:42 Roaming
dr-xr-xr-x 1 praxis praxis 0 Jul 9 00:39 'Saved Games'
dr-xr-xr-x 1 praxis praxis 4096 Jul 9 00:40 Searches
dr-xr-xr-x 1 praxis praxis 0 Jul 13 19:25 Videos
The partition was statically mounted by /etc/fstab:
$ findmnt --type ntfs3
TARGET SOURCE FSTYPE OPTIONS
/mnt/Daten /dev/sda7 ntfs3
rw,relatime,uid=1000,gid=1000,dmask=0002,fmask=0113,discard,nohidden,hide_dot_files,windows_names,iocharset=utf8
I see no possibility to have drwxrwxr-x instead dr-xr-xr-x for e.g.
folder "Documents". So it is impossible to add new files to such
folders. Theoretically it's possible to remove the READONLY attributes
from Windows side, but this would be a security risk for Windows.
On Windows, attribute READONLY does not prevent from adding files to
such folders, it only prevents from renaming and deleting the folder
itself, but the withdrawal of 'w' in Linux results in the opposite, it
prevents from adding files, but allows renaming and deleting the
folder itself. So the NTFS3 simulation of access rights is wrong here.
My suggestion:
With attribute R on a folder NTFS3 should only prevent from deleting and
renaming somehow, maybe by simulating a suitable posix ACL, but enable 'w'.
To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/2117083/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp