Re: Why chsh behaviour differs from specified in manpage?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 2012-04-24 17:20, Dmitry S. Kravtsov wrote:
> 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

What is your current shell, as shown by `getent passwd kravitz`?

chsh refuses the change if the current shell isn't in /etc/shells; this
is noted (a bit unclearly) under "NOTES" in the manpage.

> By the way, is it a typo in manpage: "for her own account"? Who is "her"?
> if we talk about user, there should be "his". But maybe I'm wrong, since
> english is definitely not my native language.

Since the user's gender is unknown, both 'his' and 'her' are common
usage, as well as 'his/her' and singular 'their'; this depends entirely
on the writer. (See, for example,
<http://english.stackexchange.com/q/48/3635>)


-- 
Mantas M. <grawity@xxxxxxxxx>


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux