How to set LD_PRELOAD for su or sudo?
<p>I am working on CentOS 6.5. The version of my glibc is 2.14, and I accidentally link /lib64/libc.so.6 to a previous glibc(libc-2.12.so).</p>

<p>Then I run <code>export LD_PRELOAD=/lib64/libc-2.14.so</code>, most commands can be executed except <code>su</code> and <code>sudo</code>. When run <code>su</code>, it gives <em>"Segmentation fault"</em>. When run <code>sudo</code>, it gives <em>"su: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /lib64/libcrypt.so.1)"</em>.</p>

<p>How to set <code>LD_PRELOAD</code> for <code>su</code> and <code>sudo</code>, or what can I do to recover the glibc?</p>