Prevents clients from seeing the existence of files that cannot be read in Samba

When you share a disk resource with Samba directly (e.g. mount /dev/sda1 as /pub, then share /pub though Samba), you will always have a directory called as "lost+found" within the directory root.

BTW, since that is a system directory for fsck and belongs to root ONLY, you may hope to hide it from Samba so your client may not be confused. Moreover, you may also hope to hide those file/directory from Samba, if the user don't have enough privilege to access it. In this case, just add this line into your smb.conf, within global or target directory section (http://us4.samba.org/samba/docs/man/Samba-HOWTO-Collection/AccessControl...):

hide unreadable = Yes

Restart Samba and you will see the different :)


Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <h1> <h2> <h3> <h4> <h5> <h6> <em> <strong> <code> <del> <blockquote> <q> <sub> <p> <br> <ul> <ol> <li> <dl> <dt> <dd> <a> <b> <u> <i> <sup> <acronym> <pre> <img>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Images can be added to this post.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.