This is an example of a samba share that gives full root permissions to the share, no matter what. This is not a recommended way to share if you are in a non-trusty network or connected directly to the internet, since anyone gets full access and permission to your files and folders. This is just an example to show how a samba share with minimal restrictions can be done.
First off, set the security mode to .share.
security = user map to guest = Bad User
The share definition setup:
[share] path = /home/tux browseable = yes read only = no public = yes writable = yes guest ok = yes guest only = yes guest account = root force user = root force group = root create mask = 0777 directory mask = 0777