[Samba] All read and write

TAKAHASHI Motonobu monyo at monyo.com
Sat Dec 17 07:26:55 MST 2011

At first, can you read/write files into the share without no
authentication from Windows *manually*? 

Their suggestion is to archive that, not to take ownership of a file.

According to your description, 

A program I used in windows is able to create folders and files but
unable to have ownership of the folder ... once the folder is created,
it is lock.

it seems that what you want is not to set all read/write share,
instead you have to set that your Windows program can take ownership
of a file on Samba share.

If you want to take ownership to myself, you need that 

(1) set "dos filemode = yes" and set the file writeable.


(2) have SeTakeOwnershipPrivilege user rights

If you want to set ownership to any user, you need that

(1) access as root (uid = 0)


(2) have SeRestorePrivilege user rights

I recommend that at first you try to take ownership a file manually.

And I think that these features are probably not tested with "security =
share", so you had better set "security = user" and proper settings.

TAKAHASHI Motonobu <monyo at samba.gr.jp>

More information about the samba mailing list