# net ads join -U administrator%t0psecret net: error while loading shared libraries: libwbclient.so.0: cannot open shared object file: No such file or directory
Не воспроизводится в хешере на последнем Сизифе: $ hsh --initroot $ hsh-install /usr/bin/net $ hsh-shell --rooter [...] [root@localhost .in]# net ads join -U administrator%t0psecret Can't load /etc/samba/smb.conf - run testparm to debug it [root@localhost .in]# mkdir /etc/samba [root@localhost .in]# touch /etc/samba/smb.conf [root@localhost .in]# net ads join -U administrator%t0psecret mkdir failed on directory /var/lib/samba/private/msg.sock: No such file or directory Failed to init messaging context [root@localhost .in]# mkdir -p /var/lib/samba/private [root@localhost .in]# net ads join -U administrator%t0psecret Host is not configured as a member server. Invalid configuration. Exiting.... Failed to join domain: This operation is only allowed for the PDC of the domain. [root@localhost .in]# Что собственно и ожидалось.
libwbclient.so.0 -- это клиент winbind. Покажите ваш /etc/nsswitch.conf, пожалуйста.
> libwbclient.so.0 -- это клиент winbind. Спасибо, я в курсе. > Покажите ваш /etc/nsswitch.conf, пожалуйста. Мне не жалко, но зачем? # grep -v -E "^#" /etc/nsswitch.conf passwd: files shadow: tcb files group: files gshadow: files hosts: files dns myhostname ethers: files netmasks: files networks: files protocols: files rpc: files services: files bootparams: nisplus [NOTFOUND=return] files netgroup: nisplus publickey: nisplus automount: files
# ldd /usr/bin/net | grep 'not found' |sort -u libnsl.so.2 => not found libwbclient.so.0 => not found Вот в чем причина. А как это получилось, описано здесь: https://bugzilla.altlinux.org/show_bug.cgi?id=35405
(In reply to comment #4) > # ldd /usr/bin/net | grep 'not found' |sort -u > libnsl.so.2 => not found > libwbclient.so.0 => not found > > Вот в чем причина. А как это получилось, описано здесь: > https://bugzilla.altlinux.org/show_bug.cgi?id=35405 Ну что ж, это проблема явно не в samba, и должна быть исправлена не в этом пакете.