[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dealing with foreign distros without nscd

From: Ludovic Courtès
Subject: Re: Dealing with foreign distros without nscd
Date: Sat, 29 Aug 2020 12:07:50 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)


Ricardo Wurmus <> skribis:

> Ludovic Courtès <> writes:
>> The workaround I found is to add ‘sssd’ to the pack, like so:
>>   guix pack -RR -S /lib=lib -S /bin=bin sssd guile
>> That way, on the other machine, you can set LD_LIBRARY_PATH such that
>> Guix’ gets loaded:
>>   tar xf /path/to/pack.tgz
>>   LD_LIBRARY_PATH=$PWD/lib ./bin/guile -c '(pk (getpw (getuid)))'
>> It works!  However, if people have ideas of less arcane workarounds, I’m
>> interested.
> Interesting!  I wonder if this really is a general solution or if it
> only works under special circumstances (like the cluster node using sssd
> already).  Will, for example, accounts that are managed via Active
> Directory / LDAP be visible if all we do is preload the Guix sssd
> libraries?

In general, you have to put the modules /etc/nsswitch.conf refers to in
$LD_LIBRARY_PATH.  The example above works for ‘sss’ but you would do
something similar for ‘mdns’, ‘ldap’, or whatever.

It’s clunky because you have to know beforehand, when you make the pack,
what nsswitch.conf requires.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]