Conrad J. Sabatier wrote:
> In article ,
> Duane A. Damiano wrote:
>
>>
>>What's the trick to changing my shell? I'm doing exactly what the
>>FreeBSD Handbook says, but it doesn't work.
>>
>>$ cat /etc/shells
>># $FreeBSD: src/etc/shells,v 1.5 2000/04/27 21:58:46 ache Exp $
>>#
>># List of acceptable shells for chpass(1).
>># Ftpd will not allow users to connect who are not using
>># one of these shells.
>>
>>/bin/sh
>>/bin/csh
>>/bin/tcsh
>>/usr/local/bin/bash
>>
>>$ chsh -s /usr/local/bin/bash
>>Password:
>>chsh: entry inconsistent
>>chsh: pw_copy: Invalid argument
>>$
>>
>>That's using my own password. If I use the root password, I get
>>"Permission denied".
>>
>>I know bash is there because "exec bash" works.
>
>
>
> Looks like there may be some corruption in your /etc/passwd or
> /etc/master.passwd files.
>
> Have you tried using chsh as some other user? Does it work?
>
You were right! Thanks.
My /etc/master.passwd file was showing /usr/local/bin/bash, while my
/etc/passwd was showing /bin/sh. I don't know how I got into that
situation. But, I manually edited the /etc/master.passwd file to make
it agree with /etc/passwd, so that they both showed /bin/sh. Then, I
ran the chsh command as above and it worked!
Duane
>> Stay informed about: Changing Shells