How to change shell ?

How to change shell ?

Post by Hong Siang Te » Fri, 17 Feb 1995 17:40:27



        I want to change my startup shell from bash to ksh. I tried
changing /bin/sh to point to ksh, and set SHELL=/bin/ksh. But during
bootup, cron ( don't know what it is ) couldn't work, and I ended up
with a read-only file system.

        I assume that this has got something to do with the syntax of
the shell language. I'm no expert on shells, so can someone help me
with the necessary changes ?

Hong Siang.

 
 
 

How to change shell ?

Post by Jason Ru » Sat, 18 Feb 1995 00:18:05


Hong Siang Teo  wrote

Quote:>       I want to change my startup shell from bash to ksh. I tried
>changing /bin/sh to point to ksh, and set SHELL=/bin/ksh. But during
>bootup, cron ( don't know what it is ) couldn't work, and I ended up
>with a read-only file system.

In order to change the startup shell I believe you must edit the /etc/passwd
file.  I think the environmental variable is only used for the execution of
shell scripts.

Hope this helps,
Jason Russ
Sterling, Va

 
 
 

How to change shell ?

Post by Ben Gob » Sat, 18 Feb 1995 16:18:31




Quote:>    I want to change my startup shell from bash to ksh. I tried
>changing /bin/sh to point to ksh, and set SHELL=/bin/ksh. But during
>bootup, cron ( don't know what it is ) couldn't work, and I ended up
>with a read-only file system.

>    I assume that this has got something to do with the syntax of
>the shell language. I'm no expert on shells, so can someone help me
>with the necessary changes ?

Enter

   chsh

at your shell prompt.  Also see   'man chsh'.

--
Ben Goble \ Lakewood, CO USA

A Stranger and Pilgrim on the Earth.

 
 
 

How to change shell ?

Post by Dave Wats » Thu, 23 Feb 1995 22:45:48




Quote:>    I want to change my startup shell from bash to ksh. I tried

Edit the /etc/passwd file.  The last entry on the line for your
account is the shell it will run when you login.  Change it to whatever
shell you want to run.  THEN make sure that shell is listed in
/etc/shells.  If it isn't then add it to /etc/shells.

That's it.

Dave Watson

 
 
 

How to change shell ?

Post by C.W.Rac » Fri, 24 Feb 1995 13:35:22




|> >      I want to change my startup shell from bash to ksh. I tried
                            ^^^^^^^^^^^^^              ^^^

Your startup shell is set in your entry in /etc/passwd.  But I don't
think there's a standard ksh in Linux.
|>
|> Enter
|>
|>    chsh
|>
|> at your shell prompt.  Also see   'man chsh'.
|>
|>
|> --
|> Ben Goble \ Lakewood, CO USA

|> A Stranger and Pilgrim on the Earth.

--
| Chick Racer                     Chevron Petroleum Technology Co. |
| (713) 596-2430                  P.O. Box 42832                   |

| 4209 Hayes Rd.                                                   |

 
 
 

How to change shell ?

Post by Graham Broadbrid » Mon, 27 Feb 1995 13:29:39



:       I want to change my startup shell from bash to ksh. I tried
: changing /bin/sh to point to ksh, and set SHELL=/bin/ksh. But during
: bootup, cron ( don't know what it is ) couldn't work, and I ended up
: with a read-only file system.

You need to change the last field of /etc/passwd to the full path/name of
the login shell.

Some machines have /usr/bin/chsh which users can use to change their login
shell.
--
+----------------------------------------------------------------------------+


  Australia                
+----------------------------------------------------------------------------+