Confused about samba4 & s3fs

Gémes Géza geza at kzsdabas.hu
Thu Aug 16 13:00:53 MDT 2012


2012-08-16 19:58 keltezéssel, steve írta:
> On 16/08/12 19:40, Gémes Géza wrote:
>> 2012-08-16 19:22 keltezéssel, Rowland Penny írta:
>>> On 16/08/12 15:10, Arvid Requate wrote:
>>>> maybe I should have explained more clearly, that s3fs is a service of
>>>> the samba process that avoids the need to start the smbd separately
>>>> and provides all the internal wiring necessary to authenticate against
>>>> the samba backend. AFAIK s3fs efetively runs the same codebase as
>>>> smbd. So you have to differentiate between three thigs here: first the
>>>> "old style" of running smbd as a separate process, second the
>>>> improved convenience of "s3fs" that runs/forks mostly the same code
>>>> automatically from the samba process itself. And finally the "NTvfs"
>>>> fileserver code, which AFAIK is based on an initiative mainly of
>>>> Tridge to
>>>> write a fileserver from scratch with an improved internal 
>>>> structure. The
>>>> NTvfs code is still in source4, but it is not the default (as of
>>>> beta1) as
>>>> it is still in early stages of development and feature completeness as
>>>> compared to the smbd/s3fs code.
>>>>
>>>> Cheers,
>>> Sorry I am still confused, I know that if you now start the samba4
>>> daemon you also get the smbd daemon, you can start the nmbd daemon to
>>> get network browsing. As far as I can see, all of this works, so I ask
>>> again, do I use s3fs so it can be tested or not?
>>>
>>> If testing is not required, why was all the effort put into adding
>>> s3fs to samba4?
>>>
>>> Rowland
>>>
>> No the services offered by nmbd in a Samba3 installation are offered by
>> the samba binary on a Samba4 install, s3fs means (in a simplified
>> manner) load the Samba3 smbd for serving files. The user facing benefit
>> of using s3fs instead of ntvfs is, that Samba3s smbd (and thus s3fs) has
>> received lots of improvements (like support for newer smb/cifs dialects
>> used by Vista/7) which didn't were ported to ntvfs.
>>
>> Regards
>>
>> Geza Gemes
>
> Hi
> Does winbind have to be running at both ends of a S4 DC and S3 
> fileserver setup?
>
> I'm having trouble getting windows boxes to write to shares with the 
> separate DC/fileserver. e.g. Roaming profiles will not be created on 
> the server.
>
> Here is my fileserver S3 smb.conf:
> [global]
> realm = hh3.site
> workgroup = ALTEA
> security = ADS
> winbind enum users = Yes
> winbind enum groups = Yes
> idmap config *:backend = tdb
> idmap config *:range = 3000-4000
> idmap config ALTEA:backend = ad
> idmap config ALTEA:range = 20000-40000000
> idmap config ALTEA:schema_mode = rfc2307
> winbind nss info = rfc2307
> winbind expand groups = 2
> winbind nested groups = yes
>
> winbind and smbd are running. getent passwd and wbinfo -u are working.
>
> With S4DC/s3fs on one box everything just works.
>
> Is there anything I'm missing with the s3 configuration?
>
> Cheers,
> Steve
>
The config looks fine IF every uidnumber and gidnumber from your SAmba4 
Active Directory fits into the range 20000-4000000.

The passes for debug this I've sent on the Samba mailing list on the 
thread you've also asked about it.

Regards

Geza Gemes


More information about the samba-technical mailing list