File permissions

Tim Allen timallen at ls82.fsnet.co.uk
Mon Dec 3 02:48:04 GMT 2001


The unix directory permissions have to be correct for the users who need
access. Samba won't override these. Take a look at the inherit permissions
setting which overrides all this force create mode stuff and is probably the
simplest option.

Regards,
Tim


>
> Tim,
>
> I have the same problem, when creating Samba I creating using user root,
so
> when I created a directory so everything is belong to user root. I'm
> setting the shared for that directory, the configuration that you give
> below can override the unix permission ? Because when my user from MS
> Workstation login using a login script and connect to the shared drive, it
> can see the file there but can't write to that directory to change or even
> add more files....
>
> Regards,
> Medici
>
>
>
> Sent by:  samba-admin at lists.samba.org
>
>
> To:   <samba at lists.samba.org>
> cc:    (bcc: Medici/Kawan_Lama)
> Subject:  Re: File permissions
>
>
> Found the answer to this. Directory permissions were drwxrwxrwx. But to
> ensure the x bits got set, need
>
> force create mode = 0777
>
> (default is 00)
>
> Unix permissions = force_create_mode | (mapped_mode & create_mask)
>
> The mapped_mode was 0666, not 0777.
>






More information about the samba mailing list