Roger Koehler wrote:
What comes to my mind: What are the permissions and owner of your
/home/<new user> ?

I tried chmod 777 and also verified correct ownership.

Here's another clue: If I try su without the login ('-') option, I get this
message:

Cannot execute /bin/bash: Permission denied

ls -l /bin/bash yields:

-rwxr-xr-x root root 1134856 Feb. 1 13:18 /bin/bash

Look at the permissions for the libraries:

$ ldd /bin/bash
        linux-vdso.so.1 (0x00007ffe4abde000)
        libreadline.so.6 => /lib/libreadline.so.6 (0x00007fe9a465e000)
        libhistory.so.6 => /lib/libhistory.so.6 (0x00007fe9a4456000)
        libncursesw.so.6 => /lib/libncursesw.so.6 (0x00007fe9a41ec000)
        libdl.so.2 => /lib/libdl.so.2 (0x00007fe9a3fe8000)
        libc.so.6 => /lib/libc.so.6 (0x00007fe9a3c44000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fe9a48a3000)

$ ls -l /lib/{libreadline,libhistory,libncursesw,libdl,libc,ld}*
-rwxr-xr-x 1 root root  163688 Jan  4 22:27 /lib/ld-2.22.so
lrwxrwxrwx 1 root root 10 Jan 4 22:01 /lib/ld-linux-x86-64.so.2 -> ld-2.22.so
-rwxr-xr-x 1 root root 1946912 Jan  4 22:27 /lib/libc-2.22.so
lrwxrwxrwx 1 root root      12 Jan  4 22:01 /lib/libc.so.6 -> libc-2.22.so
lrwxrwxrwx 1 root root      14 Jan  4 22:09 /lib/libcap.so.2 -> libcap.so.2.24
-rwxr-xr-x 1 root root   20576 Jan  4 22:27 /lib/libcap.so.2.24
-rwxr-xr-x 1 root root  196648 Jan  4 22:27 /lib/libcidn-2.22.so
lrwxrwxrwx 1 root root 15 Jan 4 22:01 /lib/libcidn.so.1 -> libcidn-2.22.so lrwxrwxrwx 1 root root 17 Jan 4 22:10 /lib/libcom_err.so.2 -> libcom_err.so.2.1
-rwxr-xr-x 1 root root   17760 Jan  4 22:27 /lib/libcom_err.so.2.1
-rwxr-xr-x 1 root root   44512 Jan  4 22:27 /lib/libcrypt-2.22.so
lrwxrwxrwx 1 root root 16 Jan 4 22:01 /lib/libcrypt.so.1 -> libcrypt-2.22.so
-rwxr-xr-x 1 root root   18640 Jan  4 22:27 /lib/libdl-2.22.so
lrwxrwxrwx 1 root root      13 Jan  4 22:01 /lib/libdl.so.2 -> libdl-2.22.so
lrwxrwxrwx 1 root root 17 Jan 4 22:13 /lib/libhistory.so.6 -> libhistory.so.6.3
-r-xr-xr-x 1 root root   40856 Jan  4 22:27 /lib/libhistory.so.6.3
lrwxrwxrwx 1 root root 18 Jan 4 22:09 /lib/libncursesw.so.6 -> libncursesw.so.6.0
-rwxr-xr-x 1 root root  474464 Jan  4 22:27 /lib/libncursesw.so.6.0
lrwxrwxrwx 1 root root 18 Jan 4 22:13 /lib/libreadline.so.6 -> libreadline.so.6.3
-r-xr-xr-x 1 root root  325960 Jan  4 22:27 /lib/libreadline.so.6.3

  -- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to