Hola Alonso, aquí un extracto de 'man smb.conf' que te va a ayudar:

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

directory mask (S)
This parameter is the octal modes which are used when converting DOS
modes to UNIX modes when creating UNIX directories.
When a directory 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
directory. Any bit not set here will be removed from the modes set on
a directory when it is created.
The default value of this parameter removes the 'group' and 'other'
write bits from the UNIX mode, allowing only the user who owns the
directory to modify it.

On 6/30/07, Alonso Landauro <[EMAIL PROTECTED]> wrote:
Estimados Amigos,

Tengo un Server Samba con esta configuracion:

[Shared]
        comment = Shared Linear Air Folder
        path = /home/Shared
        writeable = yes
        create mask = 0770
        force create mode = 0770
        force security mode = 0770
        directory mask = 0770
        inherit permissions = yes
        map acl inherit = yes
        force directory mode = 0770
        hide unreadable = Yes
        map archive = No
        oplocks = No
        level2 oplocks = No

[Finance]
        comment = Finance Folder
        create mask = 0777
        path = /home/Finance
        writeable = yes
        oplocks = No
        level2 oplocks = No
        valid users = admin, alocke, bherp, alonso, whatch

[pilot]
        comment = Pilot Files
        create mask = 0770
        path = /home/pilot
        writeable = yes
        oplocks = No
        level2 oplocks = No
        valid users = cchapman, pilot, Alonso

Por ejemplo con el Directorio Finance, cuando bherp crea un directorio,
whatch no puede grabar nada en el o  modificar el documento.

Deseo saber como crear directories y files desde windows que sean writable
por default. En otras palabras,  que aquellos "valid users" puedan read,
write and execute sin tener que hacer un:

chmod –R 777 /home/Finance a cada rato que crearon un file.

--
Saludos
Oscar
_______________________________________________
Lista de correo Linux-plug
Temática: Discusión general sobre Linux
Peruvian Linux User Group (http://www.linux.org.pe)

Participa suscribiéndote y escribiendo a:  [email protected]
Para darte de alta, de baja  o hacer ajustes a tu suscripción visita:
http://www.linux.org.pe/cgi-bin/mailman/listinfo/linux-plug

IMPORTANTE: Reglas y recomendaciones
http://www.linux.org.pe/listas/reglas.php
http://www.linux.org.pe/listas/comportamiento.php
http://www.linux.org.pe/listas/recomendaciones.php

Responder a