A l'aide je ne comprends rien !!
D'apres la doc de samba, il me semble que les parametres suivants entre en ligne de compte :
- les droits par defauts "dos to unix"
- la valeur de create mask
- la valeur de force create mask
il y a des ET, des OU et des OR dans tous les sens, c'est pas super bien expliqué, et surtout je ne comprend pas ou est stocke le umask par defaut utilise par samba...
j'ai des comptes specifique pour mes users samba "smb_user", sans home, donc pas de fichier de conf pour mettre un umask par defaut..
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 |
force create mode (S)
This parameter specifies a set of UNIX mode bit permissions that will always be set on a file created by Samba. This is done by bitwise 'OR'ing these bits onto the mode bits of a file that is being created or having its permissions changed. The default for this parameter is (in octal) 000. The modes in this parameter are bitwise 'OR'ed onto the file mode after the mask set in the create mask parameter is applied.
The example below would force all created files to have read and execute permissions set for 'group' and 'other' as well as the read/write/execute bits set for the 'user'.
Default: force create mode = 000
Example: force create mode = 0755 |
Bref, quelque comprend t'il ce biz ?
http://us5.samba.org/samba/docs/ma [...] onf.5.html