Public bug reported:

$ lsb_release -rd
No LSB modules are available.
Description:    Ubuntu 24.04.2 LTS
Release:        24.04

The package is not really known, but NTFS3 seems to belong to the Linux kernel.
$ cat /proc/version_signature
Ubuntu 6.8.0-63.66-generic 6.8.12

What is expected:
1. command stat should show information about the hidden state.
2. command find should find such "hidden" files.
3. command ls should have a switch to list such "hidden" files.

Discussion base is the following user directory on a Windows NTFS partition:
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 folder C:\Users\Praxis\AppData is flagged with the HIDDEN attribute.
When mounting among other options with the nohidden option we see:
$ 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

And ls -al does not list folder C:\Users\Praxis\AppData
$ 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

But stat knows about this folder:
$ stat /mnt/Daten/Users/Praxis/AppData
  Datei: /mnt/Daten/Users/Praxis/AppData
 Größe: 0               Blöcke: 0          EA Block: 4096   Verzeichnis
Gerät: 8/7      Inode: 59          Verknüpfungen: 1
Zugriff: (0775/drwxrwxr-x)  Uid: ( 1000/  praxis)   Gid: ( 1000/  praxis)
Zugriff: 2025-07-14 14:06:47.831252300 +0200
Modifiziert: 2025-07-09 00:39:08.959242000 +0200
Geändert: 2025-07-09 00:39:08.959242000 +0200
Geburt: 2025-07-09 00:39:08.490528800 +0200

But it does not show, that this file has a whatever property which makes it 
hidden for normal access.
In other words, there is no way to test, if a file is marked hidden or not and 
no such property is known in POSIX terminology, but in fact it is not listed by 
ls -al.

Surprisingly with the -d switch ls reports about this file:
$ ls -ald /mnt/Daten/Users/Praxis/AppData
drwxrwxr-x 1 praxis praxis 0 Jul  9 00:39 /mnt/Daten/Users/Praxis/AppData

On the other hand, it is not findable:
$ find /mnt/Daten/Users/Praxis/ -name AppData
$

This is very confusing, that there is no terminology which describes
this special difference to normal files, and the handling looks
inconsistent.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2117110

Title:
  Inconsistency from NTFS3 kernel driver when handling mount option
  nohidden

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2117110/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to