How to prevent Linux dot files in SMB share?

nas.user

Cadet
Joined
Mar 25, 2023
Messages
6
I've created a SMB share and it contains all the typical linux dot files:
1682887472405.png

How do I get rid of these? The user was created with Shell nologin and "Microsoft Account" option checked.
My NAS currently only provides shares to Windows systems, in case this makes fixing it easier.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Delete them?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
The routine adding users apparently does this by default. Of course they can be deleted, they are just text files and only used in interactive shell logins.
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
it contains all the typical linux dot files:

Linux dot files? On CORE? Unlikely. They're probably FreeBSD default dotfiles. You can probably delete them from /usr/share/skel if you do not want them created when users are added. They will probably return after an update or upgrade of TrueNAS however.
 
Top