Welcome to FreeBSDFreaks.net!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Changing Shells

 
   FreeBSD Hosting (Home) -> FreeBSD Handbook RSS
Next:  FreeBSD Handbook: A.1 CDROM and DVD Publishers  
Author Message
Duane A. Damiano

External


Since: Jan 06, 2006
Posts: 2



(Msg. 1) Posted: Fri Jan 06, 2006 6:26 pm
Post subject: Changing Shells
Archived from groups: comp>unix>bsd>freebsd>misc (more info?)

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.

 >> Stay informed about: Changing Shells 
Back to top
Login to vote
Conrad J. Sabatier

External


Since: Jan 16, 2006
Posts: 2



(Msg. 2) Posted: Sun Jan 08, 2006 1:19 am
Post subject: Re: Changing Shells [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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?

--
Conrad J. Sabatier -- "In Unix veritas"

 >> Stay informed about: Changing Shells 
Back to top
Login to vote
Duane A. Damiano

External


Since: Jan 06, 2006
Posts: 2



(Msg. 3) Posted: Sun Jan 08, 2006 1:19 am
Post subject: Re: Changing Shells [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Installation & fdisk partitioning (slices) - I picked up a copy of the "FreeBSD Handbook 2nd Ed" the other day, it came with a installation disk for version 5.1 Current and that is what I am trying to install. This is my first attempt to do anything with FreeBSD. First let me describe my...

CVSup vs. portupgrade - Reading from the FreeBSD handbook on "Using the Ports Collection" leaves me a bit confused wrt CVSup and portupgrade... do these utilities accomplish the same thing? Thanks, Jay _______________________________________________..

configuring freebsd dhcp server/router to listen on device - Hello, Im trying to move away from my linksys wireless router and move onto an old Pentium 200 Mhz I have. It will be the gateway between my modem and my network. I installed isc-dhcp3 on the box and took the sample dhcp.conf file in the freebsd..

PPP - Hi! I'm french and don't understand the chapter 18.2.1.2 (Creating PPP device Nodes) in the freeBSD handbook. Precicely I don't understand what is N in the first paragraph. Is it necessary to change the tun0? I have an other question.(I'm sorry if it..

PPP - Hi!! In the FreeBSD handbook, the chapter 18.3.3 talk about the file /etc/ppp/options. I think I must create it and copy that it's written in the handbook concerning this file but I'm not sure. Xavier --------------------------------- Yahoo! Mail...
   FreeBSD Hosting (Home) -> FreeBSD Handbook All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]