[Samba] Files are showing up as hidden when view from windows ...

Malte Starostik malte at starostik.de
Sat Oct 12 18:00:59 GMT 2002


On Saturday 12 October 2002 19:51, GSchoep at storm.l-3com.com wrote:
> Well I started digging into it, and it seems its making executables show up
> as hidden. Which seems really odd, here's an ls -l from my Solaris
> machine...
>
> -rw-r--r--   1 iacm     staff          0 Oct 12 11:10 notHidden
> -rwxr-xr-x   1 iacm     staff          0 Oct 12 11:09 showsUpHidden
>
> The file names describe which one is which.
>
> If I did a chmod 755 on notHidden, it would then show up hidden.
It's because of the map hidden config option. You can add map hidden = no as 
below. The downside is that you then cannot make any file in the homedir 
share hidden except by making it a dotfile :-(

> Any clues to why this is happening? It doesn't seem to be on all our
> shares... but from one share in particular...
>
> its smb settings are
> [home]
>         comment = Home directories
>  	browseable = yes
>         path = /home
>         public = yes
>         writeable = no
>         printable = no
map hidden = no

-Malte
-- 
#!/usr/bin/perl
$t='char|short|int|long|void';%m=qw(U "unsigned\040$3" W "w$3_t");while(<>)
{/#define UNICODE/and$m{T}=$m{W};s/\b(LP)?([UWT])?($t)\b/lc(eval$m{$2}||$3)
.($1?'*':'')/gei;print;}print"/* Cleaned by Malte's WinAPI sanitizer */\n";




More information about the samba mailing list