try to change shells in v10.4 but get invalid shell although it is listed in /etc//passwd

Asked by Arthur Davis

tried to change the shell to other than just C shell but i always get invalid entry. it is listed in the etc or bin files

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Ravi
Solved:
Last query:
Last reply:
Revision history for this message
Ravi (asvravi) said :
#1

What shell are you trying to change it to? How are you changing it? can you paste the /etc/passwd line here?

Revision history for this message
Arthur Davis (arthurdavis) said :
#2

I want to change shells to C shell since i first used it on a Unix
machine. am not necessarily going to keep it i C. Just want to
experiment with different shells

This is the command to find out the valid login shells

arthur@Sparky:~$ cat /etc/shells
# /etc/shells: valid login shells
/bin/csh
/bin/sh
/usr/bin/es
/usr/bin/ksh
/bin/ksh
/usr/bin/rc
/usr/bin/tcsh
/bin/tcsh
/usr/bin/esh
/bin/dash
/bin/bash
/bin/rbash
/usr/bin/screen

arthur@Sparky:~$ chsh -s

chsh -s /bin/tcsh arthur
Password:
chsh: /bin/tcsh is an invalid shell.

arthur@Sparky:~$ chsh -s /bin/ksh arthur
Password:
chsh: /bin/ksh is an invalid shell.

this is the command I use and i get this error message
does not seem to work on any shell
Thanks Arthur

On Thu, 2010-11-25 at 17:33 +0000, Ravi wrote:
> Your question #135405 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/135405
>
> Status: Open => Needs information
>
> Ravi requested for more information:
>
> What shell are you trying to change it to? How are you changing it? can you paste the /etc/passwd line here?
>

Revision history for this message
Best Ravi (asvravi) said :
#3

OK, I found /etc/shells also lists shells that are not actually available on the system.

Try this
sudo apt-get install tcsh

Then go into System->Administration->Users and groups. Select your username, click on "Advanced Settings" - on the advanced tab you will find the option to type in the shell.

Revision history for this message
Arthur Davis (arthurdavis) said :
#4

Thanks Ravi it works great.
Arthur