Share – Hide a folder name in Windows using the $ sign

Hello!

I am reaching out via this channel to try and understand whether this is a case of user error or a software bug.

When attempting to use the folder sharing function—with the goal of later setting up desktop redirection for Windows client users via a GPO policy created with RSAT—the system does not allow adding the ‘$’ character to the end of the share name; consequently, the folder appears in the network mapping. The solution I found was to manually edit the file at /etc/samba/shares.conf.d/Teste2 and append the ‘$’ character to the name, as shown below:

[Teste2$] <-- manual modification
path = /srv/teste2
msdfs root = no
writeable = yes
browseable = no
public = no
dos filemode = no
hide unreadable = yes
create mode = 0744
directory mode = 0755
force create mode = 00
force directory mode = 00
locking = 1
strict locking = Auto
oplocks = 1
level2 oplocks = 1
fake oplocks = 0
csc policy = manual
nt acl support = 1
inherit acls = 1
vfs objects = acl_xattr
inherit owner = no
inherit permissions = no
map acl inherit = yes

After making this adjustment, the system behaved as expected.

I also tried using the Samba option “Show share in Windows network environment,” which sets the browseable parameter to “no.” However, when creating the GPO—and once the user logs in and their folder is created at the location specified in the GPO—the root folder reappears in the network mapping.

Again, I am unsure if this is a bug or incorrect usage of the software; I simply found that this is how it works.

I apologize if my writing is difficult to understand; I am using Google Translate to send this message.

Thank you for your attention.

1 Like