[GRLUG] Sharing Samba 3 Shares via Samba 4

John Wesorick john at wesorick.com
Thu May 22 15:37:50 EDT 2014


Okay, so here's a rather odd question. Does anyone have any idea how to
share Samba 3 shares with Samba 4 for shares w/o security? I'm doing a
migration from Samba3 /w OpenLDAP to straight up Samba4 running on a
different server. I want to do a steady migration of users/servers from
Samba3/OpenLDAP to Samba4. I was planning on mounting all of the Samba3
shares with a sort of file share super user who belongs to every group that
is used for file share security on my Samba4 server and then setting up the
mounts as shares on the Samba4 server. This is working well for all of my
group-based file shares, but I have one share that is kind of a
free-for-all and doesn't have any security.

This free-for-all share shows up fine on the Samba4 server, and I can
browse it and modify/delete files normally when I am on the actual server,
but when I try to mount the Samba4 share from another PC the permissions
are all set to the same thing (755) and I can't see anything in any folders.

Does anyone have any idea why this isn't working?

Samba3 smb.conf:

[data]
>    comment = Data Drive
>    path = /srv/data
>    public = yes
>    writable = yes
>    create mask = 0660
>    directory mask = 0770
>    guest ok = yes
>    force user = localadmin
>    force group = localadmin
>    force create mode = 0660
>    force directory mode = 0770


Samba4 smb.conf:

[data]
>    comment = Data Drive
>    path = /srv/files/data
>    public = yes
>    writable = yes
>    create mask = 0660
>    directory mask = 0770
>    guest ok = yes
>    force user = migrator
>    force group = migrator
>    force create mode = 0660
>    force directory mode = 0770


Samba4 fstab:

//samba3/data /srv/files/data cifs
> username=migrator,password=MyPass,_netdev 0 0


I've tried commenting out most options on Samba4 smb.conf to no avail and
just using guest for the mount in fstab, but nothing i do seems to make a
difference. I've also tried forcing localadmin on Samba4.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shinobu.grlug.org/pipermail/grlug/attachments/20140522/d3b7a203/attachment.html>


More information about the grlug mailing list