Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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 have a share with "inherit permissions = yes". I have a directory in the share with mode rwxrwsr-x. If I create a subdirectory, the modes are rwxrws---. The same happens with a parent directory with mode rwxrwxr-x (resulting in rwxrwx---).

The permissions of the newly created subdirectory are independent of the OS used to create them and apparently independent of the umask when using smbfs (mount.cifs).

The following is an excerpt from smb.conf and contains everything related to permissions, modes, etc. of the share.

    force group = +mi
    inherit permissions = yes
    inherit owner = yes
    nt acl support = no

I added "nt acl support = no" for testing purposes and it does not seem to make a difference.

Does "inherit permissions" not work for non-user, non-group modes?

share|improve this question
You also need to consider the values of directory mask and force directory mode, either of which might be affecting your results. Set them explicitly and see if your results change. – Kyle Jones Oct 21 '12 at 19:42
force directory mode = 0777 seems to have fixed the problem. Permissions are now inherited correctly, as far as I can tell. I will do some more testing, though. – Jan-Oliver Kaiser Oct 24 '12 at 8:09

Your Answer


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

Browse other questions tagged or ask your own question.