[SAMBA] create mask

Pagina: 1
Acties:

  • Deltafox
  • Registratie: Augustus 2001
  • Laatst online: 26-12-2025
Hallo, kan iemand me vertellen wat psies de functie is van het "create mask" in een samba share.

Ik heb wel wat opgezocht en volgens mij zijn het rechten he. Maar waar zijn het dan de rechten van? van de share of van de bestanden in de share of wat???
code:
1
2
3
4
all user group other
augo
0765
--- rwx rw- r-x

begrijp ik dit zo goed???

weet iemand hier meer over te vertellen?

alvast bedankt

grtz Deltafox

  • MatHack
  • Registratie: Oktober 2001
  • Niet online

MatHack

Dev by day, Gamer by night

Van de bestanden die je nieuw aanmaakt op de share :D

There's no place like 127.0.0.1


  • blaataaps
  • Registratie: Juli 2001
  • Niet online
all en other klinkt wel een beetje als hetzelfde, vind je niet? : )
Het eerste getal is de suid bit denk ik.
Dit is een quote uit man 5 smb.conf:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
     create mask (S)

          A synonym for this parameter is Žcreate modeŽ.

          When  a  file is created, the necessary permissions
          are calculated according to the  mapping  from  DOS
          modes  to  UNIX permissions, and the resulting UNIX
          mode is then bit-wise ŽANDŽed with this  parameter.
          This parameter may be thought of as a bit-wise MASK
          for the UNIX modes of a file.  Any  bit  *not*  set
          here  will  be removed from the modes set on a file
          when it is created.

          The default value of  this  parameter  removes  the
          ŽgroupŽ and ŽotherŽ write and execute bits from the
          UNIX modes.

          Following this Samba will bit-wise  ŽORŽ  the  UNIX
          mode  created from this parameter with the value of
          the "force create mode" parameter which is  set  to
          000 by default.

          This parameter does not affect directory modes. See
          the parameter Ždirectory modeŽ for details.

          See also the  "force  create  mode"  parameter  for
          forcing  particular  mode bits to be set on created
          files. See also the "directory mode" parameter  for
          masking mode bits on created directories.  See also
          the "inherit permissions" parameter.

          Default:  create mask = 0744

          Example:  create mask = 0775