Hi, Alexey

    The chsh comes with CentOS 7 has been linked with libuser.

Thank you!


Jianwen


[root@login1 ~]# ldd `which chsh`
        linux-vdso.so.1 =>  (0x00007ffcd5e4d000)
        libuser.so.1 => /lib64/libuser.so.1 (0x00002b8203cf3000)
        libpam.so.0 => /lib64/libpam.so.0 (0x00002b8203f12000)
        libpam_misc.so.0 => /lib64/libpam_misc.so.0 (0x00002b8204121000)
        libselinux.so.1 => /lib64/libselinux.so.1 (0x00002b8204325000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b820454c000)
        libc.so.6 => /lib64/libc.so.6 (0x00002b8204768000)
        libgmodule-2.0.so.0 => /lib64/libgmodule-2.0.so.0 (0x00002b8204b36000)
        libgobject-2.0.so.0 => /lib64/libgobject-2.0.so.0 (0x00002b8204d3a000)
        libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x00002b8204f8b000)
        libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00002b82052a1000)
        libaudit.so.1 => /lib64/libaudit.so.1 (0x00002b82054d8000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00002b8205701000)
        libpcre.so.1 => /lib64/libpcre.so.1 (0x00002b8205905000)
        /lib64/ld-linux-x86-64.so.2 => /lib/ld-linux.so.2 (0x00002b82038c9000)
        libffi.so.6 => /lib64/libffi.so.6 (0x00002b8205b67000)
        libfreebl3.so => /lib64/libfreebl3.so (0x00002b8205d6f000)
        libcap-ng.so.0 => /lib64/libcap-ng.so.0 (0x00002b8205f72000)

On Jan 9, 2021, at 00:05, Alexey Tikhonov <atikhono@redhat.com> wrote:



On Fri, Jan 8, 2021 at 4:05 PM SJTU <weijianwen@sjtu.edu.cn> wrote:
Hi,

    We host a 389ds LDAP service and connect it via SSSD. All servers and clients are on CentOS 7. ldapmodify and passwd work well. But we fail to change user login shell via chsh. For example,

    $ chsh -s /bin/bash
    Changing shell for hpc-jianwen.
    Password:
    chsh: user "hpc-jianwen" does not exist.

man page for `chsh` says:
```
       chsh  supports  non-local  entries  (kerberos, LDAP, etc.) if linked with libuser, otherwise use ypchsh, lchsh or any other implementation for non-
       local entries.
```
  --  "if linked with libuser"  --  is this a case in your setup?
 

    $ id hpc-jianwen
    uid=1513(hpc-jianwen) gid=1514(hpc-jianwen) groups=1514(hpc-jianwen)

    Any suggestion is welcome.


Thank you!

Jianwen
_______________________________________________
sssd-users mailing list -- sssd-users@lists.fedorahosted.org
To unsubscribe send an email to sssd-users-leave@lists.fedorahosted.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedorahosted.org/archives/list/sssd-users@lists.fedorahosted.org
_______________________________________________
sssd-users mailing list -- sssd-users@lists.fedorahosted.org
To unsubscribe send an email to sssd-users-leave@lists.fedorahosted.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedorahosted.org/archives/list/sssd-users@lists.fedorahosted.org