Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I remove the hidden attribute on a .htaccess file that is stored on an OSX server that is accessed from a Windows machine via SMB? When I currently remove the hidden attribute it does not stick.

Many thanks

share|improve this question
up vote 1 down vote accepted

I haven't tested this, but I think adding

hide dot files = no

to either the [global] section of /etc/smb.conf (which'll make it apply to all share points), or the specific share point's section of /var/db/samba/smb.shares. Note that these files may get overwritten (either due to a settings change or system update), so be prepared to reinsert that directive as needed.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.