[Samba] Consistent UID/GID mappings?

Alexandre Beauclair beauclaira at lexum.com
Tue Apr 22 10:01:17 MDT 2014


Hello once again!

So I got everything to work on the Linux side of things using SSSD.
Now on to Windows. It seems it doesn't get the correct UID/GID when creating files in a Samba Share.
For example, on Linux I can see the following info for user test11:

[root at samba-master ~]# getent passwd test15
test15:*:23192:50001:test15:/home/users/domain/test15:/bin/bash

However, if I go in a share on my Windows client and create a file, this is what I get:

[root at samba-master share]# ls -l
-rwxrwxrwx+ 1 3000044 3000040 0 Apr 22 11:59 file.txt

Is there a way for Windows to use the Unix attributes?

Alexandre Beauclair

----- Original Message -----
From: "Alexandre Beauclair" <beauclaira at lexum.com>
To: "steve" <steve at steve-ss.com>
Cc: samba at lists.samba.org
Sent: Wednesday, April 9, 2014 2:39:12 PM
Subject: Re: [Samba] Consistent UID/GID mappings?

Following all your recommendations, I switched over to SSSD.
After a bit of fiddling, I got it working, and everything works like a charm!

Thanks to all of you for the support!

Alexandre Beauclair

----- Original Message -----
From: "steve" <steve at steve-ss.com>
To: "Alexandre Beauclair" <beauclaira at lexum.com>
Cc: "Marc Muehlfeld" <samba at marc-muehlfeld.de>, samba at lists.samba.org
Sent: Wednesday, April 9, 2014 4:49:22 AM
Subject: Re: [Samba] Consistent UID/GID mappings?

On Tue, 2014-04-08 at 14:57 -0400, Alexandre Beauclair wrote:
> Thanks a lot! 
> It worked perfectly to set the Primary GID.
> That's one down and I feel I'm finally getting somehwere. Now for the Home Directory attribute, we need them to point to /home/users/DOMAIN/username. The member machine has no trouble reading it from the UNIX attributes, but it doesn't seem to be able to from the Samba4 Server. It keeps pointing to /home/DOMAIN/username, which I believe is the default for Samba4. Is there some place else I have to configure it? Looking at my previous problems, I'm beginning to think I'm just not looking at the right place to configure these...

On the DC, winbind can't fetch anything other than uidNumber and
gidNumber. Use nslcd or sssd instead. In fact, use them on all your
Linux boxes.
HTH
Steve


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


More information about the samba mailing list