[blfs-support] Su and Sudo--Getting Both to Work

Bruce Dubbs bruce.dubbs at gmail.com
Mon Dec 2 15:20:55 PST 2013

Dan McGhee wrote:

> I reset root's password and then realized I, when I tried to run su, may
> have been misleading in this post. The actual return I get is:
> Crypt: Invalid argument

This is what I get:

$ su
Password: badpw
su: Authentication failure

So I suspect some other issue.  What do you get with 'ldd /bin/su'?

$ ldd /bin/su
         linux-vdso.so.1 (0x00007fff4c5cf000)
         libcrypt.so.1 => /lib/libcrypt.so.1 (0x00007f87f269d000)
         libc.so.6 => /lib/libc.so.6 (0x00007f87f22f3000)
         /lib64/ld-linux-x86-64.so.2 (0x00007f87f28f1000)

/etc/passwd should have:


and /etc/shadow should have:


There should be no punctuation in the hash other than / or . or $

   -- Bruce

More information about the blfs-support mailing list