Bug 38524

Summary: chsh(1) недоступен непривилегированному пользователю
Product: Sisyphus Reporter: Aleksey Cheusov <vle>
Component: shadow-changeAssignee: Mikhail Efremov <sem>
Status: NEW --- QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: ldv, mike, sem
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description Aleksey Cheusov 2020-05-22 18:30:00 MSK
1) p9
2) Открываем man chsh
    DESCRIPTION
       The chsh command changes the user login shell. This determines
       the name of the user's initial login command. A normal user
       may only change the login shell for her own account;
       the superuser may change the login shell for any account.
3) 
    $ ls -l /usr/bin/chsh 
    -rwx------ 1 root root 45400 Sep  3  2019 /usr/bin/chsh
    $ rpm -qf /usr/bin/chsh
    shadow-change-4.5-alt5.x86_64
    $
4)

Итого: пользователь не может сменить свой шел по причине того, что просто не может запустить chsh.

P.S.
Весьма вероятно, что проблема актуальная и для Сизифа.
Comment 1 Aleksey Cheusov 2020-05-23 13:27:00 MSK
То же самое касается chfn(1) и chage(1)
Comment 2 Dmitry V. Levin 2020-05-23 14:14:59 MSK
control chsh help
control chfn help
control chage help
Comment 3 Aleksey Cheusov 2020-05-23 15:45:22 MSK
Неплохо было бы сослаться на control(8) в документации
и указать, что по умолчанию так и так.
Видимо, во всех/многих facilities утилиты control(8). 
В /Features control(8) упомянут, но уж больно
мелким шрифтом, и совершенно незаметен.