[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: probleminha no samba



Oi Lucas,

|    umask 000 e igual ao chmod 777
| 
|    Em Seg, 2009-12-28 `as 13:35 -0300, Lucas Salies Brum escreveu:
| 
|      Nao Leslie, umask e diferente de chmod.

       Sim, disso eu sei :D

	   umask()  sets the calling process’s file mode creation mask (umask)
	   to mask & 0777 (i.e., only the file permission bits of mask are
	   used), and returns the previ‐
	          ous value of the mask.


|      umask 000 e igual ao chmod 777, ou seja -rwxrwxrwx
|      Entendeu?
| 
|      http://www.vivaolinux.com.br/artigo/Entendendo-os-tipos-de-permissoes/?pagina=5
|      http://www.cyberciti.biz/tips/understanding-linux-unix-umask-value-usage.html
|      http://www.dartmouth.edu/~rc/help/faq/permissions.html
| 
|      Agora eu nao sei se esse mask do Samba se refere ao umask ou chmod.

hmmm, acredito que eu tenha entendido mal a tua afirmativa, mas pra mim
mask = máscara de criação de arquivos (chmod) e 
umask = mascara & 0777 

De qualquer maneira, olhando o man do smb.conf

----------------------------------------------------------------------------------------
       create mask (S)

           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 masks. See the parameter directory mask for details.

           Note that this parameter does not apply to permissions 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
-------------------------------------------------------------------------------------------

Atenção para o segundo parágrafo (the default value), que dá a dica que não é um Umask e sim a máscara de criação do chmod.


Mas acredito que isso pouco tenha a ver com o problema que iniciou a thread. 

Att,

LEslie


Reply to: