Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I want to setup a samba for file sharing in my intranet, but I want to know if there is any way to prohibit some kind of files (e.g *.exe) uploaded to the share folder? And I want to know if there is any way to force the user to change the password for the first time login?

share|improve this question

You can use the veto files statement to prevent the upload of exe files. Forcing users to modify passwords is also possible in some circumstances, but I believe this requires running Samba at least as a Domain Controller and your users logging into the domain.

share|improve this answer
thanks a lot, i will check with the veto files utility – husean Nov 28 '11 at 2:41

Yes it is possible. I do not have full answer but hint is use to veto files option in your configuration file for your first query. Hint for second query is to use pdedit utility.

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.