Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Samba] Samba4 hide dot files equivalent

608 views
Skip to first unread message

Denis Witt

unread,
Apr 23, 2014, 10:40:02 AM4/23/14
to
Hi List,

as far as I know "hide dot files" isn't available with Samba 4.1
anymore. Is there another way to hide those files?

Thanks!
signature.asc

Rowland Penny

unread,
Apr 23, 2014, 10:50:02 AM4/23/14
to
Yes, you can use 'hide dot files = Yes' ;-)

try 'man smb.conf'

Rowland
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba

Denis Witt

unread,
Apr 24, 2014, 5:30:01 AM4/24/14
to
On Wed, 23 Apr 2014 15:47:48 +0100
Rowland Penny <rowlan...@googlemail.com> wrote:

> Yes, you can use 'hide dot files = Yes' ;-)

Doesn't work (Samba 4.1).

> try 'man smb.conf'

According to
http://samba.2283325.n4.nabble.com/Different-parameters-in-Samba-3-and-Samba-4-td2477097.html
"man smb.conf" is wrong.

Regards.
signature.asc

L.P.H. van Belle

unread,
Apr 24, 2014, 6:30:02 AM4/24/14
to
Member server ? or DC?


Memberserver : testparm -v | grep dot
result : hide dot files = Yes

DC Server : samba-tool testparm -v | grep dot
result : .... empty.

solution is simple, dont us as DC as File server.

so "man smb.conf" is not wrong ;-)


Greetz,

Louis



>-----Oorspronkelijk bericht-----
>Van: denis...@concepts-and-training.de
>[mailto:samba-...@lists.samba.org] Namens Denis Witt
>Verzonden: donderdag 24 april 2014 11:26
>Aan: sa...@lists.samba.org
>Onderwerp: Re: [Samba] Samba4 hide dot files equivalent

Rowland Penny

unread,
Apr 24, 2014, 6:40:03 AM4/24/14
to
That thread is nearly 6yrs old, and according to the latest smb.conf
manpage, 'hide dot files = yes' is actually the default.

If I add a dot file to one of my shares it does not show from a windows
client, if I add a normal file it does show, but if I add a dot '.' to
the front of the filename it disappears.

Klaus Hartnegg

unread,
Apr 24, 2014, 6:50:03 AM4/24/14
to
On 24.04.2014 11:25, Denis Witt wrote:
> Doesn't work (Samba 4.1).

Works here in Samba 4.1.6 on Ubuntu 14.04 running as NT4-style PDC.
Maybe you can instead use
veto files = /.*/

Denis Witt

unread,
Apr 24, 2014, 6:50:03 AM4/24/14
to
On Thu, 24 Apr 2014 11:29:48 +0100
Rowland Penny <rowlan...@googlemail.com> wrote:

> That thread is nearly 6yrs old, and according to the latest smb.conf
> manpage, 'hide dot files = yes' is actually the default.

Solution is: hide dot files is not available for a DC.

Regards.
signature.asc

Rowland Penny

unread,
Apr 24, 2014, 7:30:02 AM4/24/14
to
OK, I added a share to one of my DC's

[testshare]
path = /home/testshare
read only = No
hide dot files = Yes

Reloaded smb config

smbcontrol all reload-config

Created the share dir

mkdir /home/testshare

Changed mode of directory

chmod 0777 /home/testshare

Created a dot file in the dir and changed it ownership to a domain user

touch /home/testshare/.dottest.txt
chown username:Domain\ Users /home/testshare/.dottest.txt

ls -la /home/testshare/
total 8
drwxrwxrwx 2 root root 4096 Apr 24 12:05 .
drwxr-xr-x 6 root root 4096 Apr 24 12:04 ..
-rw-r--r-- 1 DOMAIN\username DOMAIN\Domain Users 0 Apr 24 12:05
.dottest.txt

Go to a windows machine, login as the domain user and open 'My Network
Places'
Enter into the Address bar '\\dc1\testshare' and press enter

Result -- An empty share, the file .dottest.txt does not show

So to test that I was connected, I created an empty text file 'sharetest'

back to the DC

ls -la /home/testshare/
total 12
drwxrwxrwx 2 root root 4096 Apr 24 12:07 .
drwxr-xr-x 6 root root 4096 Apr 24 12:04 ..
-rw-r--r-- 1 DOMAIN\username DOMAIN\Domain Users 0 Apr 24 12:05
.dottest.txt
-rwxrwxr-x+ 1 DOMAIN\username DOMAIN\Domain Users 0 Apr 24 12:07
sharetest.txt

So it would seem that even though 'hide dot files' is not showing up in
'samba-tool testparm' it does work

Andrew Bartlett

unread,
Apr 27, 2014, 6:30:01 PM4/27/14
to
On Thu, 2014-04-24 at 12:26 +0100, Rowland Penny wrote:
>
> So it would seem that even though 'hide dot files' is not showing up
> in
> 'samba-tool testparm' it does work

Correct, for features implemented by 'smbd' 'samba-tool testparm'
results are currently a lie. This will be fixed in Samba 4.2, where we
finally get all the defaults in sync.

Sorry for the confusing state of affairs.

Andrew Bartlett

--
Andrew Bartlett
http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba
0 new messages