[arch-general] Why chsh behaviour differs from specified in manpage?

XeCycle xecycle at gmail.com
Wed Apr 25 00:20:52 EDT 2012


"Dmitry S. Kravtsov" <idkravitz at gmail.com> writes:

> Hi,
>
> Today I messed around with zsh and login shells and found a strange thing -
> when I try to change my own login shell - chsh forbids me to do this:
>
> $ chsh -s /bin/bash
> You may not change the shell for 'kravitz'.
> $ whoami
> kravitz
>
> So it states, that I can't change login shell for current user, but lets
> look at manpage:
>
> DESCRIPTION
>        The chsh command changes the user login shell. This determines the
> name of the users 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.

Have you messed with PAM?  Sounds like you blocked yourself in
/etc/pam.d/chsh.

-- 
Carl Lei (XeCycle)
Department of Physics, Shanghai Jiao Tong University
OpenPGP public key: 7795E591
Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20120425/9bf780cd/attachment.asc>


More information about the arch-general mailing list