[Samba-it] Mask e permessi

Simo Sorce simo.sorce at xsec.it
Mon Dec 23 23:25:02 MST 2002


On Mon, 2002-12-23 at 16:19, Paolo Ghidini wrote:
> Vorrei sapere che permessi devo dare alle directory e ai file che condivido 
> dal samba server (io ho provato con 664)

664 va bene per i file (-rw-rw-r--)
per le directory devi usare 775 (-rwxrwxr-x), se non c'è il bit di
execute non puoi entrare in una directory.

Poi per sapere che permessi dare, bisogna capire esattamente che cosa
vuoi fare. Con 664/775 permetti all'utente proprietario ed al gruppo di
leggere e scrivere e a chiunque altro di leggere ...

>  e in che modo funzionano create mask 
> e gli altri parametri sulle maschere.

uhm mi verrebbe voglia di rispondere rtfm, ma è Natale doppotutto :-))

Diciamo che incollo un pezzo di man di smb.conf poi magari fai domande
precise su cosa non ti è chiaro:

       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  forc-
              ing  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.

              Note that this parameter does not apply to  permis-
              sions  set  by  Windows NT/2000 ACL editors. If the
              administrator wishes to enforce a  mask  on  access
              control  lists  also, they need to set the security
              mask.

              Default: create mask = 0744

              Example: create mask = 0775


> Grazie mille
> 
> Auguri di Buon natale e Buon anno a tutta la mailing

Buon Natale,
Simo.

-- 
Simo Sorce - simo.sorce at xsec.it
Xsec s.r.l.
via Durando 10 Ed. G - 20158 - Milano
tel. +39 02 2399 7130 - fax: +39 02 700 442 399
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
URL: <http://lists.samba.org/pipermail/samba-it/attachments/20021223/d273e9a4/attachment.pgp>


More information about the samba-it mailing list