[Samba] Samba/winbind UID mismatch.

Pramod Venugopal pramod at dvnull.org
Tue Aug 13 10:06:15 MDT 2013


That did not work. But on the bright side, it looks like it is doing that only for one user and only via smb. 

Other services which use the same winbind authentication seem to work fine for that user such ftp and afp. I am going to recreate the user and see if it resolves the issue.

Thanks for your help.

- Pramod


On Aug 12, 2013, at 4:52 AM, steve <steve at steve-ss.com> wrote:

> On 12/08/13 13:04, Pramod Venugopal wrote:
>> Hello everyone,
>> 
>> I am running Samba 4.0.8 on Arch Linux (installed from the Arch Repo)
>> 
>> I have winbind authentication configured and working. I am able to login via ssh, and at the machine console with my samba credentials. I also have a Windows 8 client and an OS X client which is able to connect to this system via smb.
>> 
>> However, when I create files or directories via smb I seem to have a UID mismatch compared to when I create files/directories via shell or at the console
>> 
>> When I type id at the shell, it tells me my uid is 3000018 . Files created at the shell or console have this as the owner.
>> 
>> When I copy files via smb the uid is 3000000.
>> 
>> In idmap.ldb , my xidNumber is 3000018.
>> 
>> Am I missing something ?
>> 
>> Thanks in advance,
>> 
>> - Pramod
>> 
>> 
>> 
> Hi
> A quick fix maybe.
> 1. Add the line:
> idmap_ldb use:rfc2307 = Yes
> to smb.conf
> 2. add:
> uidNumber: 3000018
> to the DN of the user
> 3. Always work on the DC either by ssh or at the console.
> 
> Then the uidNumber will _always_ be 3000018.
> 
> There are many ways to do the same but I don't know Arch so dare not suggest.
> HTH
> Steve
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.samba.org/pipermail/samba/attachments/20130813/f0920acd/attachment.pgp>


More information about the samba mailing list