Files with . at the beginning of the name, they are hidden in Windows Explorer

I would like to know if this function is normal and if there is a way to not leave it active, I have projects that are saved with . At the beginning of the organization and in the migration to using TrueNas Scale, everyone was hidden.

Thanks in advance!

Interesting. I wonder if they’re using “hide dot files = yes” as a new default with SMB shares in SCALE?

What does this reveal about the shares’ configurations? (You can change/censor any personal or identifiable names or strings.)

testparm -s

Interesting. I know Linux automatically hides dot files. I didn’t know Windows does also. I think you can disable hiding those files in windows “Folder Options”.

The default for hide dot files in samba hasn’t changed since 2004 when the parameter was introduced.

This only applies the DOS “HIDDEN” attribute to the files, which is a reasonable setting in a cross-platform environment.

1 Like

Below is the command return

Load smb config files from /etc/smb4.conf
lpcfg_do_global_parameter: WARNING: The “syslog only” option is deprecated
Loaded services file OK.
Weak crypto is allowed by GnuTLS (e.g. NTLM as a compatibility fallback)

Server role: ROLE_STANDALONE

Global parameters

[global]
bind interfaces only = Yes
disable spoolss = Yes
dns proxy = No
load printers = No
logging = file
max log size = 5120
netbios name = BITFIXSRV
passdb backend = tdbsam:/var/run/samba-cache/private/passdb.tdb
printcap name = /dev/null
registry shares = Yes
restrict anonymous = 2
server multi channel support = No
server string = TrueNAS Server
winbind request timeout = 2
idmap config * : range = 90000001 - 100000000
fruit:nfs_aces = false
fruit:zero_file_id = false
rpc_server:mdssvc = disabled
rpc_daemon:mdssd = disabled
idmap config * : backend = tdb
create mask = 0775
directory mask = 0775

[DADOS]
comment = DADOS
ea support = No
path = /mnt/RAIDZ1/DADOS
posix locking = No
read only = No
smbd max xattr size = 2097152
vfs objects = streams_xattr shadow_copy_zfs ixnas zfs_core io_uring
tn:vuid =
fruit:time machine max size = 0
fruit:time machine = False
nfs4:chown = True
tn:home = False
tn:path_suffix =
tn:purpose = DEFAULT_SHARE

On Windows I can only activate the view, but it remains hidden

In TrueNAS Core 13.3, here is what I see…


If I do not use an auxiliary parameter in my share, this is the observed behavior when accessing it from a client’s Windows File Explorer:

  • View → Hidden Files enabled: files that start with “.” are visible
  • View → Hidden Files disabled: files that start with “.” are hidden

If I use auxiliary parameter hide dot files = no in my share, this is the observed behavior when accessing it from a client’s Windows File Explorer:

  • View → Hidden Files enabled: files that start with “.” are visible
  • View → Hidden Files disabled: files that start with “.” are visible

So perhaps to get this (desired) behavior for @MuriloBitFix, the auxiliary parameter hide dot files = no can be used for that SMB share?


EDIT: Fixed an unimportant, insignificant typo, just to please such sticklers for “accuracy”. Why must we be clear between a “yes” and a “no”? Would Shakespeare care? Should anyone really care?

If I use auxiliary parameter hide dot files = yes in my share, this is the observed behavior when accessing it from a client’s Windows File Explorer

That doesn’t make sense. You’re literally setting an identical value to the service default: samba/source3/param/loadparm.c at 4fec43c0c0155240da48c33ce7dc1abcf7d8c716 · truenas/samba · GitHub

I copied that line from my first post (earlier in this thread) and forgot to change “yes” to “no”. :sweat_smile:

Score another “L for Laziness”.

I’m new to using TRUENAS and I’m still a little lost on the issue of configuration via its shell, where I can access the file with this samba information, I only found smbconf4, but it doesn’t have options for exchanging this info share dotfiles

SCALE removed Auxiliary Parameters for SMB shares.

1 Like