[Samba] What is the difference?

Gerald (Jerry) Carter jerry at samba.org
Wed Sep 24 14:05:10 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Egon Petersen wrote:
> Hi
>  
> I have come across the options "create mask" and "force create mode" and I'm
> sorry to say I don't understand the difference between these two options.

create mask is a bit wise AND with the permissions to anything not set 
in the mask will not be in the final permission set.

force create mode is a bitwise OR so anything set in the mode will be 
included in the final permission set.

For example,

    create mask = 0644

means that group and other will not have write or execute permissions on 
ewly created files.  They might have read.

    force create mode = 0640

means that the owner will always have read-write permissions
and that group will always have write permissiom.

Hope this helps.



cheers, jerry
  ----------------------------------------------------------------------
  Hewlett-Packard            ------------------------- http://www.hp.com
  SAMBA Team                 ---------------------- http://www.samba.org
  GnuPG Key                  ---- http://www.plainjoe.org/gpg_public.asc
  "You can never go home again, Oatman, but I guess you can shop there."
                             --John Cusack - "Grosse Point Blank" (1997)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/caSWIR7qMdg1EfYRAh5CAJ9Wf9GDEq9Jz2TFYCNNCOpNoZ3I7ACfQiBv
xlbVo9eX6uG7mL28oDTDBUo=
=IuvK
-----END PGP SIGNATURE-----




More information about the samba mailing list