[Samba] uid + gid mapping problem

Mike Luich mluich at DSCICORP.com
Fri Jul 29 13:43:17 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

 

Plus others. The system does not seem to be mapping uid's + gid's
correctly. Any idea's?

 

[root at sandbox ~]# ps -ef|grep nscd

root      3491  2907  0 13:33 pts/1    00:00:00 grep nscd

 

Smb.conf:

 

[global]

   workgroup = dsci

      server string = Samba Server

      printcap name = /etc/printcap

      cups options = raw

      log file = /var/log/samba/%m.log

      max log size = 50

      socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192

      dns proxy = no

   template shell = /bin/bash

   password server = 192.168.109.1

   restrict anonymous = no

   domain master = no

   preferred master = no

   max protocol = NT

   ldap ssl = No

   server signing = Auto

   realm = DSCICORP.COM

   security = ads

   idmap uid = 10000-50000

   idmap gid = 10000-50000

   winbind trusted domains only = no

   template homedir = /home/%U

   winbind use default domain = yes

   winbind separator = +

 

nsswitch.conf:

 

passwd:     files winbind ldap

shadow:     files winbind ldap

group:      files winbind ldap

hosts:      files dns

bootparams: nisplus [NOTFOUND=return] files

ethers:     files

netmasks:   files

networks:   files

protocols:  files winbind ldap

rpc:        files

services:   files winbind ldap

netgroup:   files winbind ldap

publickey:  nisplus

automount:  files winbind ldap

aliases:    files nisplus

 

pam.d/sshd:

 

auth       required     pam_stack.so service=system-auth

auth       sufficient   pam_winbind.so

auth       required     pam_nologin.so

account    required     pam_stack.so service=system-auth

account    sufficient   pam_winbind.so

password   required     pam_stack.so service=system-auth

session    required     pam_stack.so service=system-auth

 

Michael Luich

Unix Admininstrator

DSCI corp

mluich at dscicorp.com

cell: 603-475-5799

 

"The mark of an immature man is that he wants to die
nobly for a cause, while the mark of the mature man is
that he wants to live humbly for one."   --W. Stekel

 



More information about the samba mailing list