[OpenIndiana-discuss] Odd Samba/winbind issue

Jim Klimov jimklimov at cos.ru
Wed Jun 26 14:05:06 UTC 2013


On 2013-06-26 15:28, James Relph wrote:
> ln -s /usr/local/samba/lib/nss_winbind.so.1 /lib/nss_winbind.so.1
> ln -s /usr/local/samba/lib/nss_winbind.so.1 /lib/nss_winbind.so.2
> ln -s /usr/local/samba/lib/nss_winbind.so.1 /lib/libnss_winbind.so.1

In general, with all the relocatable "roots" such as local zone roots
(although was already relevant for NFS-roots and install server images
long ago), it is "more correct" to use relative symlinks here. This
way, if you explore this filesystem tree from the GZ, or in a backup,
you won't occasionally reference your current OS's files, but those
that you intended to reference as part of this particular operating
environment.

Thus:

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

...or:

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).

HTH,
//Jim





More information about the OpenIndiana-discuss mailing list