[Samba] uid + gid mapping problem

Arnold.O.Andrews at seagate.com Arnold.O.Andrews at seagate.com
Mon Aug 1 14:06:54 GMT 2005


> Hi everyone,
>
>                 Ok I can log in locally as a windows user. I can su to a
> windows user as well. But once I'm there:
>
>
>
> [root at sandbox ~]# su mluich
>
> bash-3.00$ whoami
>
> whoami: cannot find username for UID 16777253
>
>
>
> bash-3.00$ ls -l
>
> total 4
>
> drwxr-xr-x  2 16777253 16777218 4096 Jul 28 16:21 Desktop
>
> -rwxr--r--  1 16777253 16777218    0 Jul 28 15:31 test.txt
>
>
>
> Getent passwd returns:
>
>
>
> mluich:*:16777253:16777218:Mike Luich:/home/mluich:/bin/bash
>

I found this in the passwd(4) man page (Solaris 8):

     The maximum value of the uid and gid fields  is  2147483647.
     To  maximize interoperability and compatibility, administra-
     tors are recommended to assign users a  range  of  UIDs  and
     GIDs below 60000 where possible.

Perhaps you should try to set your UIDs and GIDs below 60000?  Maybe
"whoami" isn't capable of mapping UIDs/GIDs higher than 60000?


>

>    idmap uid = 10000-50000
>
>    idmap gid = 10000-50000
>

Looks like these settings are for an LDAP backend, to give a range of IDs
to be allocated for use by Samba in mapping Unix IDs to NT SIDs?  Why did
you set these?


Just a few thoughts (that might help).

Regards,

Arnold Andrews
Sr. Systems Administrator
Seagate Technology








More information about the samba mailing list