[Samba] getent passwd doesn`t work with samba 4

commiethebeastie commiethebeastie at gmail.com
Thu Jan 17 00:46:58 MST 2013


samba -V
/Version 4.0.0
/
wbinfo -u

/bla1
bla2
bla3/

nsstest

/Testing user ANON\bla1
getpwent:   ANON\bla1:*:3000078:100
getpwuid:   ANON\bla1:*:3000078:100
getpwnam:   ANON\bla1:*:3000078:100
initgroups: 100, 3000080

Testing user ANON\bla2
getpwent:   ANON\bla2:*:3000079:100
getpwuid:   ANON\bla2:*:3000079:100
getpwnam:   ANON\bla2:*:3000079:100
initgroups: 100

Testing user ANON\bla3
getpwent:   ANON\bla3:*:3000083:100
getpwuid:   ANON\bla3:*:3000083:100
getpwnam:   ANON\bla3:*:3000083:100/

But nsstest not show any unix users.

getent passwd

/root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
bin:x:2:2:bin:/bin:/bin/sh
sys:x:3:3:sys:/dev:/bin/sh
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/bin/sh
man:x:6:12:man:/var/cache/man:/bin/sh
lp:x:7:7:lp:/var/spool/lpd:/bin/sh
mail:x:8:8:mail:/var/mail:/bin/sh
news:x:9:9:news:/var/spool/news:/bin/sh
uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
proxy:x:13:13:proxy:/bin:/bin/sh
www-data:x:33:33:www-data:/var/www:/bin/sh
backup:x:34:34:backup:/var/backups:/bin/sh
list:x:38:38:Mailing List Manager:/var/list:/bin/sh
irc:x:39:39:ircd:/var/run/ircd:/bin/sh
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
libuuid:x:100:101::/var/lib/libuuid:/bin/sh
syslog:x:101:103::/home/syslog:/bin/false
messagebus:x:102:105::/var/run/dbus:/bin/false
colord:x:103:108:colord colour management
daemon,,,:/var/lib/colord:/bin/false
lightdm:x:104:111:Light Display Manager:/var/lib/lightdm:/bin/false
whoopsie:x:105:114::/nonexistent:/bin/false
avahi-autoipd:x:106:117:Avahi autoip
daemon,,,:/var/lib/avahi-autoipd:/bin/false
avahi:x:107:118:Avahi mDNS daemon,,,:/var/run/avahi-daemon:/bin/false
usbmux:x:108:46:usbmux daemon,,,:/home/usbmux:/bin/false
kernoops:x:109:65534:Kernel Oops Tracking Daemon,,,:/:/bin/false
pulse:x:110:119:PulseAudio daemon,,,:/var/run/pulse:/bin/false
rtkit:x:111:122:RealtimeKit,,,:/proc:/bin/false
speech-dispatcher:x:112:29:Speech
Dispatcher,,,:/var/run/speech-dispatcher:/bin/sh
hplip:x:113:7:HPLIP system user,,,:/var/run/hplip:/bin/false
saned:x:114:123:samba -V
Version 4.0.0
:/home/saned:/bin/false
dhcpd:x:115:125::/var/run:/bin/false
bind:x:116:126::/var/cache/bind:/bin/false
ntp:x:117:127::/home/ntp:/bin/false
libvirt-qemu:x:118:129:Libvirt Qemu,,,:/var/lib/libvirt:/bin/false
libvirt-dnsmasq:x:119:128:Libvirt
Dnsmasq,,,:/var/lib/libvirt/dnsmasq:/bin/false
postgres:x:1001:1001::/home/postgres:/bin/sh
/

FAIL ^(

cat /etc/nsswitch.conf

/passwd:         files winbind
group:          files winbind
shadow:         files

hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis/

ls -l /lib/

/
lrwxrwxrwx  1 root root     34 янв.  17 11:03 libnss_winbind.so ->
/usr/local/lib/libnss_winbind.so.2
lrwxrwxrwx  1 root root     34 янв.  17 11:03 libnss_winbind.so.2 ->
/usr/local/lib/libnss_winbind.so.2
lrwxrwxrwx  1 root root     31 янв.  17 11:04 libnss_wins.so ->
/usr/local/lib/libnss_wins.so.2
lrwxrwxrwx  1 root root     31 янв.  17 11:04 libnss_wins.so.2 ->
/usr/local/lib/libnss_wins.so.2/

WTF? Why getent doesn`t work?





--
View this message in context: http://samba.2283325.n4.nabble.com/getent-passwd-doesn-t-work-with-samba-4-tp4642886.html
Sent from the Samba - General mailing list archive at Nabble.com.


More information about the samba mailing list