[Samba] hide files

John H Terpstra jht at samba.org
Fri Aug 1 02:47:31 GMT 2003


On Fri, 1 Aug 2003, Marcus Schopen wrote:

> Hi,
>
> I read  Volker Lendecke's *great* Samba book, but can't find an answer
> to the following question:
>
> is it possible to hide, but read and write to files in a share? I'm not
> talking about "hide files", because these files are still viewable on
> windows (if option is set on client).
>
> The "veto files" option seems just to denie the access, so these files
> are not read and writable anymore.
>
> I'm looking for something that is like apache's browseable option for
> directories. You can't see what's in a directory, but can access via URL
> _if you know the URL_. Or in other words: I want to share a directory
> with read and write permissions, but don't want people to see what's in
> this directory. In best case it should look like an empty directory, but
> still be able to access (read+write) to file like
> \\server\share\whatever.txt
>
> Is that possible and if yes how?

Yes. Use Unix file system permissions as you should. Read chapter 13 of
the Samba-HOWTO-Collection.pdf file that can be obtained from:

http://us1.samba.org/samba/devl/docs/Samba-HOWTO-Collection.pdf

Basically, you need to set the directory permissions to write and execute,
but NOT read. That way the files in the directory will not be listed.

- John T.
-- 
John H Terpstra
Email: jht at samba.org



More information about the samba mailing list