views:

194

answers:

2

Is it possible to create a file on a mounted SMB share that is hidden from Windows? The .(dot) prefix doesn't work in this case because that only works on Linux. Basically I'm looking for the same affect as using attrib +h on Windows, but under Linux.

A: 

Try setting the executable-by-others bit in the file you want hidden. For example:

  • rwxrwxrw- <-- The file will not be hidden
  • rwxrwxrwx <-- HIDDEN

Hopefully that helps. If you want the Windows hidden attribute to apply to your Linux share, by the way, you'll have to set map hidden = yes in your samb.conf file.

lewiguez
This appears to apply when you host your file share from a Linux box, I have a file share mounted through CIFS in fstab that I'm trying to modify. Sorry, should have made that more clear in my original question.
what4893
A: 
pipitas