LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-21-2005, 01:28 PM   #1
intels_ss
LQ Newbie
 
Registered: Apr 2005
Location: Port Angeles, WA
Posts: 25

Rep: Reputation: 15
How to Make CSH the default shell


How do I make the CSH the default shell instead of bash in Mandrake 10.1 ?

Thanks much.
 
Old 07-21-2005, 01:33 PM   #2
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
`man usermod`
 
Old 07-21-2005, 01:41 PM   #3
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
or edit /etc/passwd and change to the correct shell...
 
Old 07-21-2005, 02:47 PM   #4
intels_ss
LQ Newbie
 
Registered: Apr 2005
Location: Port Angeles, WA
Posts: 25

Original Poster
Rep: Reputation: 15
each time I log in to the Konsole I'm defaulted to bash.

i ran the following per your advice:

userman -c csh mylogin_id

i then get this message
usermod: unable to unlock password file

so i then logged on as su, and tried again.

it appeared to have worked, but when I log out and then log back in it sticks me back in bash shell and I have to type 'csh' to get my .cshrc file to load.

ultimately i'd like to be able to login and have it automatically log into the csh and load my .cshrc file

urghhh.
 
Old 07-21-2005, 03:19 PM   #5
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
what does `cat /etc/passwd |grep youruserid` say, the last field normally defines your shell, it should say /bin/csh if usermod was successful.

If it still says /bin/bash then as root change it to /bin/csh, save, log out and log back in, I assume csh is in /bin.
 
Old 07-21-2005, 03:22 PM   #6
toaster.waffle
Member
 
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo
Posts: 97

Rep: Reputation: 15
i am not on a linux computer now, but you say you're running Konsole, which means you're in KDE, which means you have a program called kuser

open kuser, and I'm fairly sure you can set anything you need user-wise for any user on the system in there... SUCH AS DEFAULT SHELL

if not, slap me.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
'sh' shell - Actually calls legacy Bourne shell, or uses system default? Dtsazza Linux - Software 1 10-28-2005 09:20 AM
default path and csh jmickens Linux - Enterprise 1 08-24-2005 09:56 AM
shell confusion..what is diff between bash, ksh, csh, tcsh..?? servnov Linux - Newbie 7 11-18-2004 08:28 PM
'make' & 'make install commands not recognised by shell gilbertt Linux - Software 4 05-04-2004 08:04 AM
Changing from defalt shell to csh? blither Slackware 10 01-13-2003 12:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration