[OpenIndiana-discuss] Odd Samba/winbind issue

Laurent Blume laurent+oi at elanor.org
Sat Jun 29 10:53:35 UTC 2013


On 2013-06-26 4:05 PM, Jim Klimov wrote:
<snip>
> ln -s ../usr/local/samba/lib/nss_winbind.so.1 /lib/nss_winbind.so.1
> ln -s nss_winbind.so.1 /lib/nss_winbind.so.2
> ln -s nss_winbind.so.1 /lib/libnss_winbind.so.1
> 
> (this would symlink the current-directory's .so.1 in /lib/ into other
> names that you think you need, and you only have one far-reaching
> symlink to manage in case of updates with changes into other paths).

I fully concur with using relative rather than absolute symlinks.
In that case, only one is needed:

ln -s ../usr/local/samba/lib/nss_winbind.so.1 /lib/nss_winbind.so.1

The two other ones are superfluous. As per the man, nsswitch will only
consider modules starting in nss_ and ending in .so.1.

I'm in the process of renaming them for OpenCSW's Samba too (to
nss_winbind_csw.so.1 and nss_wins_csw.so.1 to avoid colliding with
Solaris').

Laurent




More information about the OpenIndiana-discuss mailing list