Bug#3136: passwd provides /etc/shells file with incorrect entry/entries
I just saw Ian J's bug report: Bug#3137: pdksh is in /bin. If
ksh is supposed to be in /usr/bin as the /etc/shells file indicates,
then this bug belongs to pdksh. However, I still think it wise to
check the more obscure shells for compliance.
On Mon, 27 May 1996, Syrus Nemat-Nasser wrote:
> Package: passwd
> Version: 1.0-4
> (I am not 100% sure of the Version)
>
> In /etc/shells, ksh is listed in /usr/bin, but ksh lives in
> /bin. A user cannot choose ksh with the chsh command because
> chsh only allows choices from /etc/shells. I have not verified
> that all other shells are listed correctly.
>
> This problem is easily fixed by the system administrator by
> editing /etc/shells by hand. I see two possible solutions:
>
> (1) Require the passwd maintainer to keep up to date on the
> location of each file and edit /etc/shells.
>
> (2) Ask each (extra) shell package to edit /etc/shells upon installation,
> adding the correct path to the excecutable. Then, remove
> the entry when purged/uninstalled.
>
> Probably, the locations of shells will rarely change, so /etc/shells
> could just be checked against all of the shell packages. This is a
> minor problem if the system administrator is experienced, but...
>
> (Using 1.1 Beta with kernel 1.3.97)
>
> Thanks.
> Syrus.
>
> ----------------------------------------------------------
> Syrus Nemat-Nasser <syrus@ucsd.edu> UCSD Physics Dept.
>
>
>
----------------------------------------------------------
Syrus Nemat-Nasser <syrus@ucsd.edu> UCSD Physics Dept.
Reply to: